25 |
echo " (-tdir|-t) STRING list of group and/or exp. dirs to test" |
echo " (-tdir|-t) STRING list of group and/or exp. dirs to test" |
26 |
echo " (recognized groups: basic, tutorials)" |
echo " (recognized groups: basic, tutorials)" |
27 |
echo " (DEF=\"\" which test all)" |
echo " (DEF=\"\" which test all)" |
28 |
|
echo " (if list= 'start_from THIS_EXP' then" |
29 |
|
echo " test THIS_EXP + all the following)" |
30 |
echo " (-skipdir|-skd) STRING list of exp. dirs to skip" |
echo " (-skipdir|-skd) STRING list of exp. dirs to skip" |
31 |
echo " (DEF=\"\" which test all)" |
echo " (DEF=\"\" which test all)" |
32 |
echo " (-bash|-b) STRING preferred location of a \"bash\" or" |
echo " (-bash|-b) STRING preferred location of a \"bash\" or" |
367 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
368 |
tail genmake.tr_log |
tail genmake.tr_log |
369 |
echo "genmakemodel: genmake failed" |
echo "genmakemodel: genmake failed" |
370 |
cp genmake_* genmake.tr_log $CDIR |
cp genmake.log genmake_* genmake.tr_log $CDIR |
371 |
return 1 |
return 1 |
372 |
else |
else |
373 |
echo "successful" |
echo "successful" |
394 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
395 |
tail make.tr_log |
tail make.tr_log |
396 |
echo "makeclean: \"make Clean\" failed" |
echo "makeclean: \"make Clean\" failed" |
397 |
cp make.tr_log $CDIR"/make.tr_log" |
cp make.tr_log genmake.log genmake.tr_log $CDIR |
398 |
return 1 |
return 1 |
399 |
fi |
fi |
400 |
echo successful |
echo successful |
443 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
444 |
tail make.tr_log |
tail make.tr_log |
445 |
echo "makedependmodel: make depend failed" |
echo "makedependmodel: make depend failed" |
446 |
cp make.tr_log $CDIR"/make.tr_log" |
cp make.tr_log genmake.log genmake.tr_log $CDIR |
447 |
return 1 |
return 1 |
448 |
else |
else |
449 |
echo successful |
echo successful |
483 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
484 |
tail make.tr_log |
tail make.tr_log |
485 |
echo failed |
echo failed |
486 |
cp make.tr_log $CDIR"/make.tr_log" |
cp make.tr_log genmake.log genmake.tr_log $CDIR |
487 |
rm -f $EXECUTABLE |
rm -f $EXECUTABLE |
488 |
return 1 |
return 1 |
489 |
else |
else |
857 |
# list of pTracers to check for monitor output |
# list of pTracers to check for monitor output |
858 |
PTRACERS_NUM="1 2 3 4 5" |
PTRACERS_NUM="1 2 3 4 5" |
859 |
|
|
860 |
MATCH_CRIT=13 |
MATCH_CRIT=10 |
861 |
|
|
862 |
printf "parsing options... " |
printf "parsing options... " |
863 |
|
|
1166 |
fi |
fi |
1167 |
else |
else |
1168 |
echo >> $SUMMARY |
echo >> $SUMMARY |
1169 |
echo "No \"OPTFILE\" was explicitly specified by testreport," >> $SUMMARY |
echo "No \"OPTFILE\" was specified ; genmake2 found and uses:" >> $SUMMARY |
1170 |
echo " so the genmake default will be used." >> $SUMMARY |
#-note: to be filled later after 1rst run |
1171 |
fi |
fi |
1172 |
echo |
echo |
1173 |
echo >> $SUMMARY |
echo >> $SUMMARY |
1392 |
mkOpt=`grep '^# OPTFILE=' $dir/$builddir/Makefile 2>/dev/null | head -1 | sed 's/^# //'` |
mkOpt=`grep '^# OPTFILE=' $dir/$builddir/Makefile 2>/dev/null | head -1 | sed 's/^# //'` |
1393 |
echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state |
echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state |
1394 |
sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state |
sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state |
1395 |
echo $mkOpt >> $DRESULTS/genmake_state |
echo " $mkOpt" >> $DRESULTS/genmake_state |
1396 |
|
if test "x$OPTFILE" = xNONE ; then |
1397 |
|
eval $mkOpt |
1398 |
|
sed "/^No \"OPTFILE\" was specified ; genmake2/a\ OPTFILE=${OPTFILE}"\ |
1399 |
|
$SUMMARY > tr_0.tmp_log |
1400 |
|
RETVAL=$? |
1401 |
|
if test "x$RETVAL" = x0 ; then rm -f $SUMMARY |
1402 |
|
cp tr_0.tmp_log $SUMMARY |
1403 |
|
else rm -f tr_0.tmp_log |
1404 |
|
fi |
1405 |
|
fi |
1406 |
|
gmkLog=$dir/$builddir/genmake.log |
1407 |
|
grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1 |
1408 |
|
RETVAL=$? |
1409 |
|
if test "x$RETVAL" = x0 ; then |
1410 |
|
echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state |
1411 |
|
sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \ |
1412 |
|
| grep -v '^... compiler version ' > tr_1.tmp_log |
1413 |
|
sed -n '1,/^$/p' tr_1.tmp_log | sed '/^$/d' | sed 's/^./ &/' \ |
1414 |
|
>> $DRESULTS/genmake_state |
1415 |
|
rm -f tr_1.tmp_log |
1416 |
|
fi |
1417 |
fi |
fi |
1418 |
fi |
fi |
1419 |
#postclean $dir/$builddir |
#postclean $dir/$builddir |