Skip to content

Commit

Permalink
cleanup, just to trigger new CI jobs with latest gemc/dev test files
Browse files Browse the repository at this point in the history
  • Loading branch information
baltzell committed Dec 21, 2024
1 parent 75926d3 commit f0a05e8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions validation/advanced-tests/run-eb-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ do
done

# last argument is input file stub:
webFileStub="${@: -1}"
stub="${@: -1}"

# sanity check on filestub name,
# just to error with reasonable message before proceeding:
case $webFileStub in
case $stub in
# electron in forward, hadron in forward:
electronproton)
;;
Expand Down Expand Up @@ -79,7 +79,7 @@ case $webFileStub in
electrondeuteronC)
;;
*)
echo Invalid input evio file: $webFileStub
echo Invalid input evio file: $stub
exit 1
esac

Expand Down Expand Up @@ -122,28 +122,28 @@ then
fi

# download test files, if necessary:
wget -N --no-check-certificate $webDir/${webFileStub}.hipo
wget -N --no-check-certificate $webDir/${stub}.hipo
if [ $? != 0 ] ; then echo "wget validation files failure" ; exit 1 ; fi

# update the schema dictionary: (no longer necessary now that recon-util does it)
#rm -f up_${webFileStub}.hipo
#../../coatjava/bin/hipo-utils -update -d ../../coatjava/etc/bankdefs/hipo4/ -o up_${webFileStub}.hipo ${webFileStub}.hipo
#rm -f up_${stub}.hipo
#../../coatjava/bin/hipo-utils -update -d ../../coatjava/etc/bankdefs/hipo4/ -o up_${stub}.hipo ${stub}.hipo

# run reconstruction:
rm -f out_${webFileStub}.hipo
rm -f out_${stub}.hipo
if [ $useClara -eq 0 ]
then
GEOMDBVAR=$geoDbVariation
export GEOMDBVAR
../../coatjava/bin/recon-util -i ${webFileStub}.hipo -o out_${webFileStub}.hipo -c 2
../../coatjava/bin/recon-util -i ${stub}.hipo -o out_${stub}.hipo -c 2
else
echo "set inputDir $PWD/" > cook.clara
echo "set outputDir $PWD/" >> cook.clara
echo "set threads 7" >> cook.clara
echo "set javaMemory 2" >> cook.clara
echo "set session s_cook" >> cook.clara
echo "set description d_cook" >> cook.clara
ls ${webFileStub}.hipo > files.list
ls ${stub}.hipo > files.list
echo "set fileList $PWD/files.list" >> cook.clara
echo "run local" >> cook.clara
echo "exit" >> cook.clara
Expand All @@ -152,7 +152,7 @@ then
fi

# run Event Builder tests:
java -DCLAS12DIR="$COAT" -Xmx1536m -Xms1024m -cp $classPath2 -DINPUTFILE=out_${webFileStub}.hipo org.junit.runner.JUnitCore eb.EBTwoTrackTest
java -DCLAS12DIR="$COAT" -Xmx1536m -Xms1024m -cp $classPath2 -DINPUTFILE=out_${stub}.hipo org.junit.runner.JUnitCore eb.EBTwoTrackTest
if [ $? != 0 ] ; then echo "EBTwoTrackTest unit test failure" ; exit 1 ; else echo "EBTwoTrackTest passed unit tests" ; fi

exit 0
Expand Down

0 comments on commit f0a05e8

Please sign in to comment.