[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 2/6] configure: Enable out-of-tree iotests
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v4 2/6] configure: Enable out-of-tree iotests |
Date: |
Sat, 24 May 2014 23:24:56 +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 <address@hidden>
---
configure | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/configure b/configure
index 605a0ec..ba74c94 100755
--- a/configure
+++ b/configure
@@ -5206,6 +5206,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
--
1.9.3
- [Qemu-devel] [PATCH v4 0/6] iotests: Allow out-of-tree run, Max Reitz, 2014/05/24
- [Qemu-devel] [PATCH v4 1/6] iotests: Allow out-of-tree run, Max Reitz, 2014/05/24
- [Qemu-devel] [PATCH v4 4/6] iotests: Use $PYTHON for Python scripts, Max Reitz, 2014/05/24
- [Qemu-devel] [PATCH v4 3/6] iotests: Source common.env, Max Reitz, 2014/05/24
- [Qemu-devel] [PATCH v4 2/6] configure: Enable out-of-tree iotests,
Max Reitz <=
- [Qemu-devel] [PATCH v4 5/6] iotests: Drop Python version from 065's Shebang, Max Reitz, 2014/05/24
- [Qemu-devel] [PATCH v4 6/6] iotests: Fix 083 for out-of-tree builds, Max Reitz, 2014/05/24
- Re: [Qemu-devel] [PATCH v4 0/6] iotests: Allow out-of-tree run, Max Reitz, 2014/05/24