Skip to content

Commit

Permalink
Use ReproducibleBehaviour user preference for core system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Konovalov authored and fingolfin committed Jan 17, 2019
1 parent 7b97773 commit e0ac2e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,11 @@ check-manuals: all
testinstall: all
$(MKDIR_P) dev/log
( echo 'SetUserPreference("UseColorsInTerminal",false); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/testinstall.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/testinstall1_%Y-%m-%d-%H-%M` )
( echo 'SetUserPreference("UseColorsInTerminal",false); LoadAllPackages(); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/testinstall.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/testinstall2_%Y-%m-%d-%H-%M` )

Expand All @@ -781,6 +783,7 @@ testmanuals: all
$(MKDIR_P) dev/log
((cd doc/tut ; \
echo 'SetUserPreference("UseColorsInTerminal",false); SetAssertionLevel( 2 ); \
SetUserPreference("ReproducibleBehaviour", true); \
Read("extractexamples.g"); Read("runexamples.g"); ' | $(TESTGAP);\
echo '============================================================';\
cd ../.. ; ff=`ls doc/tut/EXAMPLEDIFFS* 2> /dev/null | wc -l`; \
Expand All @@ -789,6 +792,7 @@ testmanuals: all
echo '============================================================';\
cd doc/ref ; \
echo 'SetUserPreference("UseColorsInTerminal",false); SetAssertionLevel( 2 ); \
SetUserPreference("ReproducibleBehaviour", true); \
Read("extractexamples.g"); Read("runexamples.g"); ' | $(TESTGAP);\
echo '============================================================';\
cd ../.. ; ff=`ls doc/ref/EXAMPLEDIFFS* 2> /dev/null | wc -l`; \
Expand All @@ -798,6 +802,7 @@ testmanuals: all
( rm -rf doc/tut/EXAMPLEDIFFS*; rm -rf doc/ref/EXAMPLEDIFFS* )
((cd doc/tut ; \
echo 'SetUserPreference("UseColorsInTerminal",false); SetAssertionLevel( 2 ); \
SetUserPreference("ReproducibleBehaviour", true); \
Read("extractexamples.g"); Read("runexamples.g"); ' | $(TESTGAPauto);\
echo '============================================================';\
cd ../.. ; ff=`ls doc/tut/EXAMPLEDIFFS* 2> /dev/null | wc -l`; \
Expand All @@ -806,6 +811,7 @@ testmanuals: all
echo '============================================================';\
cd doc/ref ; \
echo 'SetUserPreference("UseColorsInTerminal",false); SetAssertionLevel( 2 ); \
SetUserPreference("ReproducibleBehaviour", true); \
Read("extractexamples.g"); Read("runexamples.g"); ' | $(TESTGAPauto);\
echo '============================================================';\
cd ../.. ; ff=`ls doc/ref/EXAMPLEDIFFS* 2> /dev/null | wc -l`; \
Expand All @@ -816,6 +822,7 @@ testmanuals: all
((cd doc/tut ; \
echo 'SetUserPreference("UseColorsInTerminal",false); SetAssertionLevel( 2 ); \
LoadAllPackages() ; \
SetUserPreference("ReproducibleBehaviour", true); \
Read("extractexamples.g"); Read("runexamples.g"); ' | $(TESTGAP);\
echo '============================================================';\
cd ../.. ; ff=`ls doc/tut/EXAMPLEDIFFS* 2> /dev/null | wc -l`; \
Expand All @@ -825,6 +832,7 @@ testmanuals: all
cd doc/ref ; \
echo 'SetUserPreference("UseColorsInTerminal",false); SetAssertionLevel( 2 ); \
LoadAllPackages() ; \
SetUserPreference("ReproducibleBehaviour", true); \
Read("extractexamples.g"); Read("runexamples.g"); ' | $(TESTGAP);\
echo '============================================================';\
cd ../.. ; ff=`ls doc/ref/EXAMPLEDIFFS* 2> /dev/null | wc -l`; \
Expand Down Expand Up @@ -981,9 +989,11 @@ testpackagesvars: all
teststandard: all
$(MKDIR_P) dev/log
( echo 'SetUserPreference("UseColorsInTerminal",false); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/teststandard.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/teststandard1_%Y-%m-%d-%H-%M` )
( echo 'SetUserPreference("UseColorsInTerminal",false); LoadAllPackages(); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/teststandard.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/teststandard2_%Y-%m-%d-%H-%M` )

Expand All @@ -993,9 +1003,11 @@ teststandard: all
testbugfix: all
$(MKDIR_P) dev/log
( echo 'SetUserPreference("UseColorsInTerminal",false); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/testbugfix.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/testbugfix1_%Y-%m-%d-%H-%M` )
( echo 'SetUserPreference("UseColorsInTerminal",false); LoadAllPackages(); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/testbugfix.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/testbugfix2_%Y-%m-%d-%H-%M` )

Expand Down

0 comments on commit e0ac2e5

Please sign in to comment.