[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/16] tests/tcg: add simple record/replay smoke test for aarc
From: |
Alex Bennée |
Subject: |
[PATCH v2 11/16] tests/tcg: add simple record/replay smoke test for aarch64 |
Date: |
Thu, 19 Sep 2019 18:10:10 +0100 |
This adds two new tests that re-use the memory test to check basic
record replay functionality is still working. We have to define our
own runners rather than using the default pattern as we want to change
the test name but re-use the memory binary.
We declare the test binaries as PHONY as they don't rely exist.
[AJB: A better test would output some sort of timer value or other
otherwise variable value so we could compare the record and replay
outputs and ensure they match]
Signed-off-by: Alex Bennée <address@hidden>
Cc: Pavel Dovgalyuk <address@hidden>
---
tests/tcg/aarch64/Makefile.softmmu-target | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/tests/tcg/aarch64/Makefile.softmmu-target
b/tests/tcg/aarch64/Makefile.softmmu-target
index 4c4aaf61dd3..b4b39579634 100644
--- a/tests/tcg/aarch64/Makefile.softmmu-target
+++ b/tests/tcg/aarch64/Makefile.softmmu-target
@@ -32,3 +32,24 @@ memory: CFLAGS+=-DCHECK_UNALIGNED=1
# Running
QEMU_OPTS+=-M virt -cpu max -display none -semihosting-config
enable=on,target=native,chardev=output -kernel
+
+# Simple Record/Replay Test
+.PHONY: memory-record
+run-memory-record: memory-record memory
+ $(call run-test, $<, \
+ $(QEMU) -monitor none -display none \
+ -chardev file$(COMMA)path=$<.out$(COMMA)id=output \
+ -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \
+ $(QEMU_OPTS) memory, \
+ "$< on $(TARGET_NAME)")
+
+.PHONY: memory-replay
+run-memory-replay: memory-replay run-memory-record
+ $(call run-test, $<, \
+ $(QEMU) -monitor none -display none \
+ -chardev file$(COMMA)path=$<.out$(COMMA)id=output \
+ -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \
+ $(QEMU_OPTS) memory, \
+ "$< on $(TARGET_NAME)")
+
+TESTS+=memory-record memory-replay
--
2.20.1
- [PATCH v2 00/16] testing/next (docker/podman, tcg, build fixes), Alex Bennée, 2019/09/19
- [PATCH v2 12/16] tests/docker: Add fedora-win10sdk-cross image, Alex Bennée, 2019/09/19
- [PATCH v2 11/16] tests/tcg: add simple record/replay smoke test for aarch64,
Alex Bennée <=
- [PATCH v2 15/16] docs/devel: add "check-tcg" to testing.rst, Alex Bennée, 2019/09/19
- [PATCH v2 14/16] configure: preserve PKG_CONFIG for subdir builds, Alex Bennée, 2019/09/19
- [PATCH v2 16/16] Makefile: fix-up qemu-ga.8 paths to take in-src builds into account, Alex Bennée, 2019/09/19
- [PATCH v2 06/16] target/ppc: fix signal delivery for ppc64abi32, Alex Bennée, 2019/09/19
- [PATCH v2 13/16] .shippable.yml: Build WHPX enabled binaries, Alex Bennée, 2019/09/19
- [PATCH v2 08/16] tests/tcg: re-enable linux-test for ppc64abi32, Alex Bennée, 2019/09/19
- [PATCH v2 07/16] tests/tcg: clean-up some comments after the de-tangling, Alex Bennée, 2019/09/19