198 |
command="$GENMAKE2 -ds -m $MAKE --mods=../code" |
command="$GENMAKE2 -ds -m $MAKE --mods=../code" |
199 |
if test "x$OPTFILE" != xNONE ; then |
if test "x$OPTFILE" != xNONE ; then |
200 |
command="$command --optfile=$OPTFILE" |
command="$command --optfile=$OPTFILE" |
|
# echo " command=\"$command\"" |
|
201 |
fi |
fi |
202 |
if test "x$IEEE" != x ; then |
if test "x$IEEE" != x ; then |
203 |
command="$command -ieee" |
command="$command -ieee" |
204 |
fi |
fi |
|
# echo "command: \"$command\"" |
|
205 |
printf 'genmake ... ' 1>&2 |
printf 'genmake ... ' 1>&2 |
206 |
$command > make.log 2>&1 |
$command > make.log 2>&1 |
207 |
RETVAL=$? |
RETVAL=$? |
208 |
for i in genmake_state genmake_optfile genmake_local Makefile ; do |
cp Makefile $CDIR |
|
if test -r $i ; then |
|
|
cp $i $CDIR |
|
|
fi |
|
|
done |
|
209 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
210 |
tail make.log |
tail make.log |
211 |
echo "genmakemodel: genmake failed" 1>&2 |
echo "genmakemodel: genmake failed" 1>&2 |
212 |
cp make.log $CDIR |
cp genmake_* make.log $CDIR |
213 |
return 1 |
return 1 |
214 |
else |
else |
215 |
echo "successful" 1>&2 |
echo "successful" 1>&2 |
363 |
end |
end |
364 |
EOFA |
EOFA |
365 |
|
|
366 |
f77 tmp_cmpnum.f |
f77 -o a.out tmp_cmpnum.f |
367 |
if [ -x ./a.out ]; then |
if [ -x ./a.out ]; then |
368 |
echo "OK" |
echo "OK" |
369 |
return 0 |
return 0 |
370 |
else |
else |
371 |
echo |
echo |
372 |
echo "createcodelet: failed to compile codelet" |
echo "ERROR: failed to compile comparison code" |
373 |
exit 1 |
exit 1 |
374 |
fi |
fi |
375 |
} |
} |
429 |
|
|
430 |
|
|
431 |
############################################################################### |
############################################################################### |
|
############################################################################### |
|
|
############################################################################### |
|
432 |
|
|
433 |
|
|
434 |
# Default properties |
# Default properties |
588 |
echo -n "Start time: " >> $SUMMARY |
echo -n "Start time: " >> $SUMMARY |
589 |
start_date=`date` |
start_date=`date` |
590 |
echo $start_date > $SUMMARY |
echo $start_date > $SUMMARY |
|
cat << EOF | tee -a $SUMMARY |
|
|
T S U V |
|
|
G D M c m s m s m s m s |
|
|
E p a R g m m e . m m e . m m e . m m e . |
|
|
N n k u 2 i a a d i a a d i a a d i a a d |
|
|
2 d e n d n x n . n x n . n x n . n x n . |
|
|
|
|
|
EOF |
|
|
|
|
|
NDIR=0 |
|
591 |
|
|
592 |
of_path= |
of_path= |
593 |
if test "x$OPTFILE" != xNONE ; then |
if test "x$OPTFILE" != xNONE ; then |
601 |
fi |
fi |
602 |
file=${OPTFILE##*/} |
file=${OPTFILE##*/} |
603 |
OPTFILE=$of_path/$file |
OPTFILE=$of_path/$file |
604 |
|
cp $OPTFILE $DRESULTS |
605 |
|
echo >> $SUMMARY |
606 |
|
echo " OPTFILE=$OPTFILE" >> $SUMMARY |
607 |
else |
else |
608 |
echo |
echo | tee $SUMMARY |
609 |
echo "WARNING: can't read OPTFILE=\"$OPTFILE\" but will try to use it..." |
echo "ERROR: can't read OPTFILE=\"$OPTFILE\"" | tee $SUMMARY |
610 |
|
exit 1 |
611 |
fi |
fi |
612 |
|
else |
613 |
|
echo >> $SUMMARY |
614 |
|
echo "No \"OPTFILE\" was explicitly specified by testreport," >> $SUMMARY |
615 |
|
echo " so the genmake default will be used." >> $SUMMARY |
616 |
fi |
fi |
617 |
echo |
echo |
|
echo "OPTFILE=$OPTFILE" >> $SUMMARY |
|
618 |
echo >> $SUMMARY |
echo >> $SUMMARY |
619 |
|
cat << EOF | tee -a $SUMMARY |
620 |
|
T S U V |
621 |
|
G D M c m s m s m s m s |
622 |
|
E p a R g m m e . m m e . m m e . m m e . |
623 |
|
N n k u 2 i a a d i a a d i a a d i a a d |
624 |
|
2 d e n d n x n . n x n . n x n . n x n . |
625 |
|
|
626 |
|
EOF |
627 |
|
|
628 |
# ...and each test directory... |
# ...and each test directory... |
629 |
for dir in $TESTDIRS ; do |
for dir in $TESTDIRS ; do |
721 |
fi |
fi |
722 |
|
|
723 |
echo |
echo |
724 |
formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} \ |
fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results` |
|
${run:-N} $results |
|
725 |
echo |
echo |
726 |
formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} \ |
echo "$fres" >> $SUMMARY |
727 |
${run:-N} $results >> $SUMMARY |
echo "fresults='$fres'" > $CDIR"/summary.txt" |
|
echo "fresults='" > $CDIR"/summary.txt" |
|
|
formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} \ |
|
|
${run:-N} $results >> $CDIR"/summary.txt" |
|
|
echo "'" >> $CDIR"/summary.txt" |
|
728 |
echo "MACH='$MACH'" >> $CDIR"/summary.txt" |
echo "MACH='$MACH'" >> $CDIR"/summary.txt" |
729 |
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
730 |
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
732 |
|
|
733 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
734 |
|
|
|
NDIR=$(( $NDIR + 1 )) |
|
|
|
|
735 |
done |
done |
736 |
|
|
737 |
echo -n "Start time: " >> $SUMMARY |
echo -n "Start time: " >> $SUMMARY |