#!/bin/sh dir=$SRT_LOCAL/bin/$SRT_SUBDIR separator='===================================================================' clean() { rm -f complex.rz index.rz compcwn.rz add.rz indices.rz rm -f new.hbk dir.rz quicktest.rz timing.rz comprwn.rz.cwn comprwn.rz rm -f complex.hs index.hs compcwn.hs add.hs indices.hs rm -f new.hbk dir.hs quicktest.hs timing.hs comprwn.hs rm -f complex.root index.root compcwn.root add.root indices.root rm -f append.rz append.root append.hs rm -f transfer.rz transfer.root transfer.hs rm -f dir.root quicktest.root timing.root comprwn.root rm -f histarray.hs histarray.root histarray.rz rm -f roottest.* core } testing () { clean echo $separator echo "======================= testing with:" $* echo $separator echo "test: complex" $dir/hepComplex $* 2>&1 echo "" echo "test: complex again. This test should FAIL." $dir/hepComplex $* 2>&1 echo $separator echo "test: writeReadCwn" $dir/hepWriteReadCwn $* 2>&1 echo "" echo "test: writeReadCwn again" $dir/hepWriteReadCwn $* 2>&1 echo $separator echo "test: writeReadRwn" $dir/hepWriteReadRwn $* 2>&1 echo "" echo "test: writeReadRwn again" $dir/hepWriteReadRwn $* 2>&1 echo $separator echo "test: directory listing" $dir/hepDir compcwn $* 2>&1 echo $separator echo "test: TObject (works in ROOT only)" $dir/hepWriteReadRoot $* 2>&1 echo $separator echo "test: rwn2cwn" $dir/hepRwn2cwn comprwn.rz $* 2>&1 echo $separator echo "test: hepAddTest" $dir/hepAddTest $* 2>&1 echo "" echo "test: hepAddTest again" $dir/hepAddTest $* 2>&1 echo $separator echo "test: hepIndexTest" $dir/hepIndexTest $* 2>&1 echo "" echo "test: hepIndexTest again. This test should FAIL." $dir/hepIndexTest $* 2>&1 echo $separator echo "test: hepArrayTest" $dir/hepArrayTest $* 2>&1 echo "" echo "test: hepArrayTest again" $dir/hepArrayTest $* 2>&1 echo $separator echo "test: hepInoutTest" $dir/hepInoutTest $* 2>&1 echo $separator echo "test: hepFileManager" $dir/hepFileManager $* 2>&1 echo $separator echo "test: hepQuickTest" $dir/hepQuickTest $* 2>&1 echo "" echo "test: hepQuickTest again" $dir/hepQuickTest $* 2>&1 echo $separator echo "test: timingTest" $dir/hepTimingTest $* 2>&1 echo "" echo "test: timingTest again. This test should FAIL." $dir/hepTimingTest $* 2>&1 clean } testingCommon() { clean echo $separator echo "test: transfer" $dir/hepTransfer 2>&1 echo $separator echo "test: appending" $dir/hepAppend 2>&1 echo $separator echo "test: HistArray test" $dir/hepHistArray $* 2>&1 clean } if [ -r $SRT_PRIVATE_CONTEXT/HepTuple/examples/sample.hbk ] then cp $SRT_PRIVATE_CONTEXT/HepTuple/examples/sample.hbk ./sample.hbk else cp $SRT_PUBLIC_CONTEXT/HepTuple/examples/sample.hbk ./sample.hbk fi testing "-hbook" #testing "-histo" testing "-root" testingCommon # exit