equal
deleted
inserted
replaced
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/isabelle-repository/repos/testtool/publish_test.py |
12 |
14 |
13 ## diagnostics |
15 ## diagnostics |
14 |
16 |
15 PRG="$(basename "$0")" |
17 PRG="$(basename "$0")" |
16 |
18 |
118 else |
120 else |
119 DIR="." |
121 DIR="." |
120 TOOL="$ISABELLE_TOOL makeall $MFLAGS all" |
122 TOOL="$ISABELLE_TOOL makeall $MFLAGS all" |
121 fi |
123 fi |
122 |
124 |
|
125 IDENT=$(cat "$DISTPREFIX/ISABELLE_IDENT") |
|
126 |
123 # main test loop |
127 # main test loop |
124 |
128 |
125 log "starting [$@]" |
129 log "starting [$@]" |
126 |
130 |
127 for SETTINGS in $@; do |
131 for SETTINGS in $@; do |
157 |
161 |
158 if [ $? -eq 0 ] |
162 if [ $? -eq 0 ] |
159 then |
163 then |
160 # test log and cleanup |
164 # test log and cleanup |
161 echo ------------------- test successful --- `date` --- $HOSTNAME >> $TESTLOG 2>&1 |
165 echo ------------------- test successful --- `date` --- $HOSTNAME >> $TESTLOG 2>&1 |
|
166 if [ -x $PUBLISH_TEST ]; then |
|
167 $PUBLISH_TEST -r $IDENT -s "SUCCESS" -a log $TESTLOG |
|
168 fi |
162 gzip -f $TESTLOG |
169 gzip -f $TESTLOG |
163 else |
170 else |
164 # test log |
171 # test log |
165 echo ------------------- test FAILED --- `date` --- $HOSTNAME >> $TESTLOG 2>&1 |
172 echo ------------------- test FAILED --- `date` --- $HOSTNAME >> $TESTLOG 2>&1 |
|
173 if [ -x $PUBLISH_TEST ]; then |
|
174 $PUBLISH_TEST -r $IDENT -s "FAIL" -a log $TESTLOG |
|
175 fi |
166 |
176 |
167 # error log |
177 # error log |
168 echo "Test for platform ${SHORT} failed. Log file attached." >> $ERRORLOG |
178 echo "Test for platform ${SHORT} failed. Log file attached." >> $ERRORLOG |
169 echo "[...]" >> $ERRORLOG |
179 echo "[...]" >> $ERRORLOG |
170 tail -3 $TESTLOG >> $ERRORLOG |
180 tail -3 $TESTLOG >> $ERRORLOG |