diff options
| author | Philippe Mathieu-Daudé | 2018-06-12 19:34:37 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2018-06-15 21:10:11 +0200 |
| commit | 1b145d59b74a5880d82954ee940a219e73851f9e (patch) | |
| tree | 4390f9565f0fbbb2cba327afeebcd8fc79e51db2 | |
| parent | Acceptance tests: add Linux kernel boot and console checking test (diff) | |
| download | qemu-1b145d59b74a5880d82954ee940a219e73851f9e.tar.gz qemu-1b145d59b74a5880d82954ee940a219e73851f9e.tar.xz qemu-1b145d59b74a5880d82954ee940a219e73851f9e.zip | |
configure: Enable out-of-tree acceptance tests
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é <f4bug@amsat.org>
Message-Id: <20180612173437.14462-1-f4bug@amsat.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
| -rwxr-xr-x | configure | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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" |
