[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/7] configure: Enable out-of-tree acceptance tests
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PULL 7/7] configure: Enable out-of-tree acceptance tests |
Date: |
Fri, 15 Jun 2018 16:13:27 -0300 |
From: Philippe Mathieu-Daudé <address@hidden>
Currently to run Avocado acceptance tests in an out-of-tree
build directory, we need to use the full path to the test:
build_dir$ avocado run
/full/path/to/sources/qemu/tests/acceptance/boot_linux_console.py
This patch adds a symlink in the build tree to simplify the
tests invocation, allowing the same command than in in-tree builds:
build_dir$ avocado run tests/acceptance/boot_linux_console.py
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
configure | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index a8c4094c87..d095ed45a4 100755
--- a/configure
+++ b/configure
@@ -7239,9 +7239,11 @@ for rom in seabios vgabios ; do
done
# set up tests data directory
-if [ ! -e tests/data ]; then
- symlink "$source_path/tests/data" tests/data
-fi
+for tests_subdir in acceptance data; do
+ if [ ! -e tests/$tests_subdir ]; then
+ symlink "$source_path/tests/$tests_subdir" tests/$tests_subdir
+ fi
+done
# set up qemu-iotests in this build directory
iotests_common_env="tests/qemu-iotests/common.env"
--
2.18.0.rc1.1.g3f1ff2140
- [Qemu-devel] [PULL 0/7] Python queue, 2018-06-15, Eduardo Habkost, 2018/06/15
- [Qemu-devel] [PULL 3/7] scripts/qemu.py: allow adding to the list of extra arguments, Eduardo Habkost, 2018/06/15
- [Qemu-devel] [PULL 1/7] Remove COPYING.PYTHON, Eduardo Habkost, 2018/06/15
- [Qemu-devel] [PULL 2/7] Add functional/acceptance tests infrastructure, Eduardo Habkost, 2018/06/15
- [Qemu-devel] [PULL 5/7] scripts/qemu.py: introduce set_console() method, Eduardo Habkost, 2018/06/15
- [Qemu-devel] [PULL 6/7] Acceptance tests: add Linux kernel boot and console checking test, Eduardo Habkost, 2018/06/15
- [Qemu-devel] [PULL 7/7] configure: Enable out-of-tree acceptance tests,
Eduardo Habkost <=
- [Qemu-devel] [PULL 4/7] Acceptance tests: add quick VNC tests, Eduardo Habkost, 2018/06/15
- Re: [Qemu-devel] [PULL 0/7] Python queue, 2018-06-15, Peter Maydell, 2018/06/19