[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 8/8] tests: Run device-crash-test on "make check"
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 8/8] tests: Run device-crash-test on "make check" |
Date: |
Fri, 9 Mar 2018 17:28:27 -0300 |
Run a subset of tests using device-crash-test on "make check", to
help us catch device crashes earlier.
This also add a "check-device-crash-test-full" rule, that will
check all machine/device combinations.
Signed-off-by: Eduardo Habkost <address@hidden>
---
tests/Makefile.include | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/tests/Makefile.include b/tests/Makefile.include
index ef9b88c369..0ba641b8d4 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -942,6 +942,17 @@ check-decodetree:
./check.sh "$(PYTHON)" "$(SRC_PATH)/scripts/decodetree.py", \
TEST, decodetree.py)
+CRASH_TEST = $(SRC_PATH)/scripts/device-crash-test
+CRASH_TEST_OPTIONS = $(if $(V),-v,-q)
+CRASH_TEST_BINARIES = $(foreach TARGET,$(TARGETS),
$(TARGET)-softmmu/qemu-system-$(TARGET))
+
+.PHONY: check-device-crash-quick
+check-device-crash-quick:
+ $(CRASH_TEST) $(CRASH_TEST_OPTIONS) -t machine=DEFAULT accel=tcg --
$(CRASH_TEST_BINARIES)
+
+check-device-crash-full:
+ $(CRASH_TEST) $(CRASH_TEST_OPTIONS) -F $(CRASH_TEST_BINARIES)
+
# Consolidated targets
.PHONY: check-qapi-schema check-qtest check-unit check check-clean
@@ -950,7 +961,7 @@ check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
check-unit: $(patsubst %,check-%, $(check-unit-y))
check-speed: $(patsubst %,check-%, $(check-speed-y))
check-block: $(patsubst %,check-%, $(check-block-y))
-check: check-qapi-schema check-unit check-qtest check-decodetree
+check: check-qapi-schema check-unit check-qtest check-decodetree
check-device-crash-quick
check-clean:
$(MAKE) -C tests/tcg clean
rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
--
2.14.3
- [Qemu-devel] [PATCH 0/8] tests: Run device-crash-test on "make check", Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 1/8] device-crash-test: Refactor loglevel configuration code, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 2/8] device-crash-test: Add examples to script documentation, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 3/8] device-crash-test: Accept machine=DEFAULT to test the default machine, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 4/8] device-crash-test: New known crashes, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 5/8] device-crash-test: Remove runnable-machine check, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 7/8] device-crash-test: Don't print warnings in quiet mode, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 6/8] device-crash-test: Use WARN for known crashes, Eduardo Habkost, 2018/03/09
- [Qemu-devel] [PATCH 8/8] tests: Run device-crash-test on "make check",
Eduardo Habkost <=
- Re: [Qemu-devel] [PATCH 0/8] tests: Run device-crash-test on "make check", no-reply, 2018/03/09