diff mbox

[PULL,for-2.7,1/3] build-sys: link tests/data

Message ID 1469473467-16316-2-git-send-email-mdroth@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Roth July 25, 2016, 7:04 p.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>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/configure b/configure
index 6ffa4a8..61279b0 100755
--- a/configure
+++ b/configure
@@ -5995,6 +5995,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"