]> Git Repo - qemu.git/commitdiff
configure: Enable out-of-tree iotests
authorMax Reitz <[email protected]>
Sat, 24 May 2014 21:24:56 +0000 (23:24 +0200)
committerKevin Wolf <[email protected]>
Fri, 27 Jun 2014 18:00:00 +0000 (20:00 +0200)
In order to allow out-of-tree iotests, create a symlink for the check
script in the build tree.

While doing so, also write configured options relevant to the iotests to
common.env in the build tree; currently, this is the command to invoke
Python 2.

Signed-off-by: Max Reitz <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
configure

index 71029643ccea6ec77e2cdb5437d6eb8b497e4335..23ecb37c43511e32e7081fc03319d253716bba47 100755 (executable)
--- a/configure
+++ b/configure
@@ -5273,6 +5273,18 @@ if test "$docs" = "yes" ; then
   mkdir -p QMP
 fi
 
+# set up qemu-iotests in this build directory
+iotests_common_env="tests/qemu-iotests/common.env"
+iotests_check="tests/qemu-iotests/check"
+
+echo "# Automatically generated by configure - do not modify" > "$iotests_common_env"
+echo >> "$iotests_common_env"
+echo "export PYTHON='$python'" >> "$iotests_common_env"
+
+if [ ! -e "$iotests_check" ]; then
+    symlink "$source_path/$iotests_check" "$iotests_check"
+fi
+
 # Save the configure command line for later reuse.
 cat <<EOD >config.status
 #!/bin/sh
This page took 0.027764 seconds and 4 git commands to generate.