X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=all-tests;h=5ede05d743e79c250d3e761ad429dad6bf2df234;hb=ddb5d7e50ffef50b41186199de2a9b6b21850bf8;hp=419614a39f3714bf92604706feac39c4784adc5a;hpb=726ddc98acc2e88ce4f50ed1a1829a6ed11e781e;p=nepi.git diff --git a/all-tests b/all-tests index 419614a3..5ede05d7 100755 --- a/all-tests +++ b/all-tests @@ -4,13 +4,29 @@ # store results in a file that contains the git hash # and also shows differences if any # +# if this command is run as all-tests3, then we will just do +# make PYTHON=python3 +# +# xxx - WARNING : most likely the python2 and python3 tests +# 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 -targets="test-node test-app" +PYTHON=python +version=2 +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="all-tests.$hash" +output="zz.$hash.py$version" +latest="zz.latest.py$version" # if there is any pending change, use another name is_pristine="" @@ -32,12 +48,21 @@ function all_tests () { echo ======================================== echo tests echo ======================================== - make all-tests + make PYTHON=$PYTHON 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 } +# WARNING +# 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=$?