18 |
echo " (-l |-list )MACHINES check platforms from this list" |
echo " (-l |-list )MACHINES check platforms from this list" |
19 |
echo " [def=\"$MACHINES\"]" |
echo " [def=\"$MACHINES\"]" |
20 |
echo " (-d |-day )FIRSTDAY select output from day=\"YYYYMMDD\"" |
echo " (-d |-day )FIRSTDAY select output from day=\"YYYYMMDD\"" |
21 |
|
echo " (argument of \"date -d\" is allowed)" |
22 |
echo " [def=\"$FIRSTDAY\"]" |
echo " [def=\"$FIRSTDAY\"]" |
23 |
echo " (-u |-upto )LASTDAY until last day=\"YYYYMMDD\" (=selected period)" |
echo " (-u |-upto )LASTDAY until last day=\"YYYYMMDD\" (=selected period)" |
24 |
echo " [def=\"FIRSTDAY\"]" |
echo " [def=\"FIRSTDAY\"]" |
102 |
esac |
esac |
103 |
|
|
104 |
done |
done |
105 |
|
#-- test FIRSTDAY content ; interpret as "date -d" arg. if not YYYYMMDD |
106 |
|
ttt=`echo "y$FIRSTDAY" | sed 's/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/z/'` |
107 |
|
if test "x$ttt" != 'xyz' ; then |
108 |
|
FIRSTDAY=`date -d "$FIRSTDAY" +%Y%m%d` |
109 |
|
fi |
110 |
|
ttt=`echo "y$FIRSTDAY" | sed 's/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/z/'` |
111 |
|
if test "x$ttt" != 'xyz' ; then |
112 |
|
echo "Error: FIRSTDAY='$FIRSDAY' not recognized" |
113 |
|
exit 2 |
114 |
|
fi |
115 |
if test $LASTDAY = "30000000" ; then LASTDAY=$FIRSTDAY ; fi |
if test $LASTDAY = "30000000" ; then LASTDAY=$FIRSTDAY ; fi |
116 |
CMDLINE=$0 |
CMDLINE=$0 |
117 |
for xx in "$@" ; do nw=`echo $xx | wc -w` |
for xx in "$@" ; do nw=`echo $xx | wc -w` |
155 |
fi |
fi |
156 |
else |
else |
157 |
echo "$INDIR is not a directory" |
echo "$INDIR is not a directory" |
158 |
exit |
exit 3 |
159 |
fi |
fi |
160 |
|
|
161 |
#- a short summary of this checking : |
#- a short summary of this checking : |
177 |
|
|
178 |
if test "x$MACHINES" = "x_All_" ; then |
if test "x$MACHINES" = "x_All_" ; then |
179 |
MACHINES="faulks aces eddy bay meander lagoon hugo" |
MACHINES="faulks aces eddy bay meander lagoon hugo" |
180 |
MACHINES="$MACHINES columbia edvir rays sx8 xd1" |
MACHINES="$MACHINES columbia edvir rays solasrv sx8 xd1" |
181 |
MACHINES="$MACHINES beagle batsi starp" |
MACHINES="$MACHINES beagle batsi starp" |
182 |
|
|
183 |
MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq` |
MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq` |
209 |
if test $n == 2 ; then |
if test $n == 2 ; then |
210 |
num2=`expr $num1 \* $n` |
num2=`expr $num1 \* $n` |
211 |
if [ $num0 -lt $num2 ] ; then |
if [ $num0 -lt $num2 ] ; then |
212 |
dir_list=`( cd $INDIR ; ls -1 -t ../$PREV_P/*${mname}*/summary.txt | sed 's/\/summary.txt//' )` |
dir_list=`( cd $INDIR ; ls -1 -t ../$PREV_P/*${mname}*/summary.txt 2> /dev/null | sed 's/\/summary.txt//' )` |
213 |
#echo "dir_list='$dir_list'" |
#echo "dir_list='$dir_list'" |
214 |
fi |
fi |
215 |
else |
else |
244 |
ADJOINT= |
ADJOINT= |
245 |
RESTART=0 |
RESTART=0 |
246 |
NOI3E=0 |
NOI3E=0 |
247 |
|
MTH=0 |
248 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
249 |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
250 |
eval $comm |
eval $comm |
251 |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
252 |
NOI3E=`grep -c "^run: .*testreport .* '*-noieee'* " $dir/summary.txt` |
NOI3E=`grep -c "^run: .*testreport.* '*-noieee'* " $dir/summary.txt` |
253 |
|
MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt` |
254 |
fi |
fi |
255 |
if test "x$RESTART" = x0 ; then |
if test "x$RESTART" = x0 ; then |
256 |
kind="forward" |
kind="forward" |
261 |
if test "x$NOI3E" = x1 ; then |
if test "x$NOI3E" = x1 ; then |
262 |
OPTFILE="${OPTFILE}.noieee" |
OPTFILE="${OPTFILE}.noieee" |
263 |
fi |
fi |
264 |
|
if test "x$MTH" = x1 ; then |
265 |
|
yy=`echo $OPTFILE | grep -c 'mth$'` |
266 |
|
if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi |
267 |
|
fi |
268 |
day=`echo $i | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
day=`echo $i | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
269 |
ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
270 |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
286 |
cat ./slist | tee -a $OUTPFIL |
cat ./slist | tee -a $OUTPFIL |
287 |
fi |
fi |
288 |
echo ".... previous list (n=$n):" | tee -a $OUTPFIL |
echo ".... previous list (n=$n):" | tee -a $OUTPFIL |
289 |
cat ./plist | tee -a $OUTPFIL |
cat ./plist | tee -a $OUTPFIL | head -20 |
290 |
fi |
fi |
291 |
|
|
292 |
fi |
fi |
308 |
num=`grep -c "^$key" ./plist` |
num=`grep -c "^$key" ./plist` |
309 |
#- discard unsafe test: |
#- discard unsafe test: |
310 |
dd=`echo $optf | grep -c 'gfortran.*mth'` |
dd=`echo $optf | grep -c 'gfortran.*mth'` |
311 |
if [ $dd -ge 1 ] ; then num=-1 ; fi |
if test $mname = 'lagoon' -a $dd = 1 ; then num=-1 ; fi |
312 |
|
if test $mname = 'harbor' -a $dd = 1 ; then num=-1 ; fi |
313 |
|
if test $mname = 'aces' -a $optf = 'linux_ia32_open64' ; then num=-1 ; fi |
314 |
|
if test $mname = 'aces' -a $optf = 'linux_ia32_g95' ; then num=-1 ; fi |
315 |
if test $num -gt 0 ; then |
if test $num -gt 0 ; then |
316 |
pline=`grep "^$key " ./plist | head -1` |
pline=`grep "^$key " ./plist | head -1` |
317 |
if test $dBug = 't' ; then |
if test $dBug = 't' ; then |
321 |
pdir=`echo $pline | cut -d " " -f 5` |
pdir=`echo $pline | cut -d " " -f 5` |
322 |
outs="$INDIR/$sdir/summary.txt" |
outs="$INDIR/$sdir/summary.txt" |
323 |
sed -n "5,$ p" $outs | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \ |
sed -n "5,$ p" $outs | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \ |
324 |
|
| sed 's/ OPTFILE=.*\// OPTFILE=/g' \ |
325 |
| grep -v '^[A-S][a-t]* time: ' > tmpfs |
| grep -v '^[A-S][a-t]* time: ' > tmpfs |
326 |
outp="$INDIR/$pdir/summary.txt" |
outp="$INDIR/$pdir/summary.txt" |
327 |
sed -n "5,$ p" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \ |
sed -n "5,$ p" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \ |
328 |
|
| sed 's/ OPTFILE=.*\// OPTFILE=/g' \ |
329 |
| grep -v '^[A-S][a-t]* time: ' > tmpfp |
| grep -v '^[A-S][a-t]* time: ' > tmpfp |
330 |
echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL |
echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL |
331 |
diff tmpfs tmpfp > tmpdf |
diff tmpfs tmpfp > tmpdf |
395 |
fi |
fi |
396 |
echo ".. cat $OUTPSUM" |
echo ".. cat $OUTPSUM" |
397 |
cat $OUTPSUM |
cat $OUTPSUM |
398 |
|
exit 0 |