|
Last change
on this file since 1351 was 1350, checked in by garnier, 15 years ago |
|
update to last version 4.9.4
|
-
Property svn:executable
set to
*
|
|
File size:
956 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | # A simple script to run all the tests in this directory and check
|
|---|
| 4 | # their results against the expected (previous) results
|
|---|
| 5 | #
|
|---|
| 6 | # $Id: run.sh,v 1.6 2010/07/07 14:45:31 gcosmo Exp $
|
|---|
| 7 | # $Name: geant4-09-04-ref-00 $
|
|---|
| 8 | #
|
|---|
| 9 | # Created:
|
|---|
| 10 | # 12 May 99 - J. Apostolakis: starting from P.Kent's test.sh
|
|---|
| 11 | # changed output to STDout only
|
|---|
| 12 | # Modified:
|
|---|
| 13 | # 21 May 99 - J. Apostolakis: check the results
|
|---|
| 14 | # 28 Feb 00 - G. Cosmo: changed script to use /bin/sh shell.
|
|---|
| 15 | # Fixed $G4TARGET and invocation of gmake.
|
|---|
| 16 |
|
|---|
| 17 | echo "Running on `hostname`, which is a `uname -a` machine"
|
|---|
| 18 | host=`hostname`
|
|---|
| 19 |
|
|---|
| 20 | for i in CurveTest.cc G4*.cc
|
|---|
| 21 | do
|
|---|
| 22 | target=`basename $i .cc`
|
|---|
| 23 | echo "Compiling $target ... "
|
|---|
| 24 | make G4TARGET=$target
|
|---|
| 25 | echo -n "Executing $target .."
|
|---|
| 26 | $G4WORKDIR/bin/$G4SYSTEM/$target > $target.newout-$host
|
|---|
| 27 | echo ".. difference from expected output: "
|
|---|
| 28 | diff $target.out $target.newout-$host
|
|---|
| 29 | echo " "
|
|---|
| 30 | done
|
|---|
| 31 |
|
|---|
| 32 | exit
|
|---|
| 33 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.