tester gcj.test,NONE,1.1 run,1.13,1.14

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
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: [email protected]" > $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))



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.