Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support baselining tests in parallel
- Loading branch information
Showing
4 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#!/bin/bash | ||
# usage: fix-tests.sh /full/path/to/file/containing/broken/tests.txt | ||
# usage: fix-tests.sh /path/to/file/containing/broken/tests.txt | ||
# should be run from trunk/testsuite | ||
# created by Martin Sjölund | ||
|
||
FILE=`realpath $1` | ||
CD=`pwd` | ||
echo Started in directory: $CD | ||
if test -z "$OPENMODELICAHOME"; then | ||
RTEST=`pwd`/rtest | ||
cd `pwd`/testsuite/partest/ | ||
else | ||
RTEST=$OPENMODELICAHOME/../testsuite/rtest | ||
cd $OPENMODELICAHOME/../testsuite/partest/ | ||
fi | ||
while read line ; do (if test ! -z "$line"; then cd `dirname $line` && $RTEST -b `basename $line`; fi) ; done < $1 | ||
echo Switched to directory: $(pwd) | ||
echo Baselining files from $FILE in parallel ... | ||
perl ./runtests.pl -b -file=$FILE | ||
cd $CD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters