Admin/isatest/isatest-makeall
changeset 48212 cccc92c0addc
parent 48158 68a32e12b999
child 48258 734384f35f8a
equal deleted inserted replaced
48211:12bbb9d4b6ed 48212:cccc92c0addc
     7 ## global settings
     7 ## global settings
     8 . ~/admin/isatest/isatest-settings
     8 . ~/admin/isatest/isatest-settings
     9 
     9 
    10 # max time until test is aborted (in sec)
    10 # max time until test is aborted (in sec)
    11 MAXTIME=28800
    11 MAXTIME=28800
    12 
       
    13 PUBLISH_TEST="$HOME/home/isabelle-repository/repos/testtool/publish_test.py"
       
    14 
    12 
    15 ## diagnostics
    13 ## diagnostics
    16 
    14 
    17 PRG="$(basename "$0")"
    15 PRG="$(basename "$0")"
    18 
    16 
   176 
   174 
   177     if [ $? -eq 0 ]
   175     if [ $? -eq 0 ]
   178     then
   176     then
   179         # test log and cleanup
   177         # test log and cleanup
   180         echo ------------------- test successful --- `date` --- $HOSTNAME >> $TESTLOG 2>&1
   178         echo ------------------- test successful --- `date` --- $HOSTNAME >> $TESTLOG 2>&1
   181         if [ -x $PUBLISH_TEST ]; then
       
   182             $PUBLISH_TEST -r $IDENT -s "SUCCESS" -a log $TESTLOG -n Makeall_isatest_$SHORT
       
   183         fi
       
   184         gzip -f $TESTLOG
   179         gzip -f $TESTLOG
   185     else
   180     else
   186         # test log
   181         # test log
   187         echo ------------------- test FAILED --- `date` --- $HOSTNAME >> $TESTLOG 2>&1
   182         echo ------------------- test FAILED --- `date` --- $HOSTNAME >> $TESTLOG 2>&1
   188         if [ -x $PUBLISH_TEST ]; then
       
   189              $PUBLISH_TEST -r $IDENT -s "FAIL" -a log $TESTLOG -n Makeall_isatest_$SHORT
       
   190         fi
       
   191 
   183 
   192         # error log
   184         # error log
   193         echo "Test for platform ${SHORT} failed. Log file attached." >> $ERRORLOG
   185         echo "Test for platform ${SHORT} failed. Log file attached." >> $ERRORLOG
   194         echo "[...]" >> $ERRORLOG
   186         echo "[...]" >> $ERRORLOG
   195         tail -3 $TESTLOG >> $ERRORLOG
   187         tail -3 $TESTLOG >> $ERRORLOG