diff mbox

[v2,1/2] build-sys: link tests/data

Message ID 1465988761-23054-2-git-send-email-marcandre.lureau@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc-André Lureau June 15, 2016, 11:06 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Link a common tests data directory to the build directory.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/configure b/configure
index 8c2f90b..c79234c 100755
--- a/configure
+++ b/configure
@@ -6008,6 +6008,11 @@  for rom in seabios vgabios ; do
     echo "LD=$ld" >> $config_mak
 done
 
+# set up tests data directory
+if [ ! -e tests/data ]; then
+    symlink "$source_path/tests/data" tests/data
+fi
+
 # set up qemu-iotests in this build directory
 iotests_common_env="tests/qemu-iotests/common.env"
 iotests_check="tests/qemu-iotests/check"