[Nice-commit] tester gcj.test,NONE,1.1 run,1.13,1.14
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-02-26 10:51:55
|
Update of /cvsroot/nice/tester In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1131 Modified Files: run Added Files: gcj.test Log Message: Added gcj testing (running the testuiste only) Index: run =================================================================== RCS file: /cvsroot/nice/tester/run,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** run 25 Feb 2005 16:35:53 -0000 1.13 --- run 26 Feb 2005 10:51:42 -0000 1.14 *************** *** 28,31 **** --- 28,36 ---- fi + if [ "$GCC_HOME" -a ! "$GCJ" ]; then + export GCJ=$GCC_HOME/bin/gcj + [ -x $GCJ ] || export GCJ= + fi + if ! ls config.* >/dev/null 2>&1; then echo "You must create at least one config.* file." *************** *** 102,106 **** 2) echo "SKIP" ;; 3) echo "IMPOSSIBLE" ;; ! *) echo "OTHER" ;; esac } >> $config.res --- 107,111 ---- 2) echo "SKIP" ;; 3) echo "IMPOSSIBLE" ;; ! *) echo "$((code-10))" ;; esac } >> $config.res *************** *** 113,116 **** --- 118,124 ---- echo "Admin: $us...@us..." > $machine.id echo "System: $system" >> $machine.id + if [ "$GCJ" ]; then + "$GCJ" --version | head -1 >> $machine.id + fi # Send the results to the Test Central --- NEW FILE: gcj.test --- #! /bin/sh [ "$GCJ" ] || exit 2 cd Nice /usr/bin/time -o TIME java -Xms64M -classpath "classes" nice.tools.testsuite.TestNice -gcc "$GCC_HOME" testsuite > OUT RES=$? # print for the log cat OUT NUM_PREFIX=" regressions: " NUM=`tail -10 OUT | grep "$NUM_PREFIX"` NUM=`expr match "$NUM" "$NUM_PREFIX"'\(.*\)'` # Number of errors is encoded as 10+number (since smaller numbers have # other meanings) exit $((10+NUM)) |