build-sys: link tests/data
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 15 Jun 2016 11:06:00 +0000 (13:06 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 25 Jul 2016 18:23:17 +0000 (13:23 -0500)
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

index 6ffa4a83cc8f56fa6afc3a923a7eb821361054f2..61279b05f3ddaae8b3f4690b8c36443624b615a5 100755 (executable)
--- 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"