Makefile: Add tests-release target

This commit is contained in:
Fabian 2020-12-31 19:14:28 -06:00
parent e0473dae18
commit af5d01fff6

View file

@ -240,6 +240,15 @@ tests: all-debug
./tools/copy-to-sha256.py images/integration-test-fs/fs.tar images/integration-test-fs/flat
./tests/full/run.js
tests-release: all
mkdir -p images/integration-test-fs/flat
cp images/bzImage images/integration-test-fs/
touch images/integration-test-fs/initrd
cd images/integration-test-fs && tar cfv fs.tar bzImage initrd
./tools/fs2json.py images/integration-test-fs/fs.tar --out images/integration-test-fs/fs.json
./tools/copy-to-sha256.py images/integration-test-fs/fs.tar images/integration-test-fs/flat
TEST_RELEASE_BUILD=1 ./tests/full/run.js
nasmtests: all-debug
$(MAKE) -C $(NASM_TEST_DIR) all
$(NASM_TEST_DIR)/gen_fixtures.js