X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=all-tests;h=5ede05d743e79c250d3e761ad429dad6bf2df234;hb=8fe8f7b8abaa718ec312fe9d16470482d19e1d69;hp=6cae656d7da9243d3f2a77309a11a3abbe31f932;hpb=e77a91d5173a513108a7448868362de060b804a6;p=nepi.git diff --git a/all-tests b/all-tests index 6cae656d..5ede05d7 100755 --- a/all-tests +++ b/all-tests @@ -11,8 +11,13 @@ # cannot safely be run together; need to check the nepi exp_ids # used more closely +DIRNAME=$(dirname $0) COMMAND=$(basename $0) +if echo $COMMAND | grep -q 6; then + $DIRNAME/all-tests2; $DIRNAME/all-tests3; exit +fi + PYTHON=python version=2 echo $COMMAND | grep -q 3 && { PYTHON=python3; version=3; } @@ -20,7 +25,8 @@ echo $COMMAND | grep -q 3 && { PYTHON=python3; version=3; } hash=$(git log -n 1 | head -1 | sed -e 's,commit ,,' -e 's,\(........\).*,\1,') # compute output file name -output="zz.py$version.$hash" +output="zz.$hash.py$version" +latest="zz.latest.py$version" # if there is any pending change, use another name is_pristine="" @@ -46,7 +52,7 @@ function all_tests () { make_retcod=$! echo ======================================== end=$(date +%s) - echo all-tests : end at; date; echo total duration $(($end-$begin)) seconds + echo all-tests : end at $((date)); echo total duration $(($end-$begin)) seconds return $make_retcod } @@ -54,6 +60,9 @@ function all_tests () { # the current code for analyzing the output is very basic # this needs to be checked manually for some time +# create a 'latest' symlink +ln -f -s $output $latest + all_tests >& $output retcod=$?