/usr/lib/eso-midas/17FEB/test/prim/testsuper.sh is in eso-midas-testdata 17.02pl1.2-2build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | #!/bin/bash
#
# shell script testsuper.sh to test Midas
#
# variables MIDASHOME and MIDVERS must be set already!
#
# execute as: $ $MIDASHOME/$MIDVERS/test/prim/testsuper.sh
#
# if it's the very first time you execute Midas (e.g. after an installation)
# execute as: $ $MIDASHOME/$MIDVERS/test/prim/testsuper.sh 1
#
# K. Banse 041129
#
#.VERSION
# 041223 last modif
#
if [ -d $MIDASHOME/$MIDVERS ] ; then
echo "MIDASHOME/MIDVERS = $MIDASHOME/$MIDVERS"
else
echo env. var. MIDASHOME and/or MIDVERS not set... we abort
exit 1
fi
cd ~/tmp
echo "we work in `pwd`"
echo "first we clean this dir. completely...!"
echo "you have 2 seconds to abort this...!"
sleep 2
rm -rf *
ls
echo we execute Midas in job-mode:
inmidas -j "@ vericopy; @ superverify; bye"
$MIDASHOME/$MIDVERS/system/unix/inmidas -j "@ vericopy; @ superverify; bye"
echo "now we check the Midas logfile for errors in any tutorial"
grep \(ERR\) ~/midwork/F*00.LOG
if [ $? != 0 ] ; then
echo "-------------------------------------------------------------"
echo procedure superverify terminated without errors
echo "-------------------------------------------------------------"
else
echo "-------------------------------------------------------------"
echo procedure superverify had problems - check the Midas logfile!
echo "-------------------------------------------------------------"
exit 1
fi
cd $MIDASHOME
echo
echo "as the final step, we also install the calibration data base"
echo "if we have a calib tarfile (compressed or uncompressed) in $MIDASHOME"
echo
ls
sleep 2
if [ ! -f calib.tar.Z ] ; then
if [ ! -f calib.tar ] ; then
echo "neither file calib.tar.Z nor calib.tar found in $MIDASHOME"
echo "skip calibration data base creation..."
exit
fi
fi
$MIDASHOME/$MIDVERS/monit/calib_build
|