[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 2/7] configure: Enable out-of-tree iotests
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCH v3 2/7] configure: Enable out-of-tree iotests |
Date: |
Fri, 23 May 2014 11:47:42 +0800 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Thu, 05/22 23:30, Max Reitz wrote:
> 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..f9d7a4d 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
> + ln -s "$source_path/$iotests_check" "$iotests_check"
> +fi
> +
Please use symlink().
Fam
[Qemu-devel] [PATCH v3 4/7] iotests: Source common.env, Max Reitz, 2014/05/22
[Qemu-devel] [PATCH v3 5/7] iotests: Use $PYTHON for Python scripts, Max Reitz, 2014/05/22