diff options
author | Vincent Danjean <Vincent.Danjean@ens-lyon.org> | 2012-06-21 09:43:57 (GMT) |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-10 22:16:24 (GMT) |
commit | 3226dea3610c8d3cb81b574e1aa478948ddc6c91 (patch) | |
tree | 589be58acd0b07fdee94091f2042f9884bfc8cef /tests/set-interpreter-short.sh | |
parent | d0dac944aeb6385da874d07da2c9897f2f9bd7d6 (diff) | |
download | patchelf-3226dea3610c8d3cb81b574e1aa478948ddc6c91.zip patchelf-3226dea3610c8d3cb81b574e1aa478948ddc6c91.tar.gz patchelf-3226dea3610c8d3cb81b574e1aa478948ddc6c91.tar.bz2 |
Allow parallel execution of tests
Each test use its own subdirectory in scratch/
Diffstat (limited to 'tests/set-interpreter-short.sh')
-rwxr-xr-x | tests/set-interpreter-short.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/set-interpreter-short.sh b/tests/set-interpreter-short.sh index 62990c9..2c9f4eb 100755 --- a/tests/set-interpreter-short.sh +++ b/tests/set-interpreter-short.sh @@ -1,18 +1,19 @@ #! /bin/sh -e +SCRATCH=scratch/$(basename $0 .sh) ./simple oldInterpreter=$(../src/patchelf --print-interpreter ./simple) echo "current interpreter is $oldInterpreter" -rm -rf scratch -mkdir -p scratch +rm -rf ${SCRATCH} +mkdir -p ${SCRATCH} -cp simple scratch/ -../src/patchelf --set-interpreter /oops scratch/simple +cp simple ${SCRATCH}/ +../src/patchelf --set-interpreter /oops ${SCRATCH}/simple echo "running with missing interpreter..." -if scratch/simple; then +if ${SCRATCH}/simple; then echo "simple works, but it shouldn't" exit 1 fi |