Changeset 813 for cpp


Ignore:
Timestamp:
07/28/18 20:35:25 (6 years ago)
Author:
Maciej Komosinski
Message:

Improved the script that runs unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/tests/go.sh

    r812 r813  
    1 if [ "$1" != "-val" ]
     1#/bin/bash
     2
     3if [ "$1" != "-val" ] #just for safety, accept only -val (i.e., "use valgrind")
    24then
    3         OPT_VAL=""
     5        EXTRA_ARGS=""
     6        echo "Unsupported argument '$1'"
    47else
    5         OPT_VAL=$1
     8        EXTRA_ARGS=$1
    69fi
    7 python3 ../../tester/tester.py $OPT_VAL -e '(.*)=../\1' -f SDK-tests.txt
    8 python3 ../../tester/tester.py $OPT_VAL -e '(.*)=../\1' -f geometry-tests.txt
    9 python3 ../../tester/tester.py $OPT_VAL -e '(.*)=../\1' -f similarity-tests.txt
     10
     11for testset in SDK-tests.txt geometry-tests.txt similarity-tests.txt
     12do
     13        python3 ../../tester/tester.py $EXTRA_ARGS -e '(.*)=../\1' -f $testset
     14done
Note: See TracChangeset for help on using the changeset viewer.