[Debian-med-packaging] [concavity] 04/05: I'd like to prefix temporary test dir by package name which helps sometimes to spot the tempdir if needed

Afif Elghraoui afif at debian.org
Tue Apr 19 05:26:36 UTC 2016


Hi, Andreas,

Was there a reason you didn't recommend use of ADTTMP instead of
manually creating and removing a temporary folder? The debugging options
to adt-run like --shell-fail remove the need to know what the directory
is called, though the ADTTMP directory is also prefixed with the package
name anyway if I remember correctly.

regards
Afif

على الإثنين 18 نيسـان 2016 ‫00:15، كتب Andreas Tille:
> This is an automated email from the git hooks/post-receive script.
> 
> tille pushed a commit to branch master
> in repository concavity.
> 
> commit b1c5874783f9859c38c9dc191edf8ac38f58a3ec
> Author: Andreas Tille <tille at debian.org>
> Date:   Mon Apr 18 08:56:46 2016 +0200
> 
>     I'd like to prefix temporary test dir by package name which helps sometimes to spot the tempdir if needed
> ---
>  debian/tests/installation-test | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/debian/tests/installation-test b/debian/tests/installation-test
> index b65d632..6621504 100755
> --- a/debian/tests/installation-test
> +++ b/debian/tests/installation-test
> @@ -5,11 +5,14 @@
>  
>  set -e
>  
> -WORKDIR=$(mktemp -d)
> +pkg=concavity
> +
> +WORKDIR=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
>  trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
>  
>  cd $WORKDIR
> -cp -R "${0%/*}/../../examples" $WORKDIR
> +# cp -R "${0%/*}/../../examples" $WORKDIR
> +
>  
>  concavity --help
>  concavity -conservation examples/conservation_data/1G6C examples/1G6C.pdb test1
> 

-- 
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name



More information about the Debian-med-packaging mailing list