qemu: Add more granular control for check tests
Add a new argument for script: qemu-check.exp as the type of tests to be
executed. After this change its possible to run tests granularly as
follows:
- Executes all tests:
$ make check
$ make check CHECK_TESTS=all
- Execute only xtest tests:
$ make check CHECK_TESTS=xtest
- Execute only trusted-keys tests:
$ make check CHECK_TESTS=trusted-keys
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Acked-by: Jerome Forissier <jerome@forissier.org>
diff --git a/qemu_v8.mk b/qemu_v8.mk
index 46b7b80..9f8d6c9 100644
--- a/qemu_v8.mk
+++ b/qemu_v8.mk
@@ -410,6 +410,9 @@
ifneq ($(TIMEOUT),)
check-args := --timeout $(TIMEOUT)
endif
+ifneq ($(CHECK_TESTS),)
+check-args += --tests $(CHECK_TESTS)
+endif
check: $(CHECK_DEPS)
ln -sf $(ROOT)/out-br/images/rootfs.cpio.gz $(BINARIES_PATH)/