Skip to content

Commit

Permalink
Separate testextra from teststandard (#3362)
Browse files Browse the repository at this point in the history
Co-Authored-By: alex-konovalov <alex-konovalov@users.noreply.github.com>
  • Loading branch information
alex-konovalov authored and fingolfin committed Mar 21, 2019
1 parent 48bfb20 commit 31d7def
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,20 @@ teststandard: all
ReadGapRoot( "tst/teststandard.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/teststandard2_%Y-%m-%d-%H-%M` )

# run testextra.g twice:
# - without packages (except needed to run GAP)
# - with all packages loaded
testextra: all
$(MKDIR_P) dev/log
( echo 'SetUserPreference("UseColorsInTerminal",false); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/testextra.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/testextra1_%Y-%m-%d-%H-%M` )
( echo 'SetUserPreference("UseColorsInTerminal",false); LoadAllPackages(); \
SetUserPreference("ReproducibleBehaviour", true); \
ReadGapRoot( "tst/testextra.g" );' | $(TESTGAP) | \
tee `date -u +dev/log/testextra2_%Y-%m-%d-%H-%M` )

# run testbugfix.g twice:
# - without packages (except needed to run GAP)
# - with all packages loaded
Expand Down
25 changes: 25 additions & 0 deletions tst/testextra.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#############################################################################
##
## This file is part of GAP, a system for computational discrete algebra.
##
## Copyright of GAP belongs to its developers, whose names are too numerous
## to list here. Please refer to the COPYRIGHT file for details.
##
## SPDX-License-Identifier: GPL-2.0-or-later
##
## This file exercises 'tst/testextra' tests, which are very slow.
##
## To run it, use this command:
##
## gap> Read( Filename( DirectoriesLibrary( "tst" ), "testextra.g" ) );
##

Print( "You should start GAP4 using `gap -A -x 80 -r -m 100m -o 1g -K 2g'.\n\n" );

dirs := [
DirectoriesLibrary( "tst/testextra" )
];
TestDirectory( dirs, rec(exitGAP := true) );

# Should never get here
FORCE_QUIT_GAP(1);
1 change: 0 additions & 1 deletion tst/teststandard.g
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Print( "You should start GAP4 using `gap -A -x 80 -r -m 100m -o 1g -K 2g'.\n\n"
dirs := [
DirectoriesLibrary( "tst/teststandard" ),
DirectoriesLibrary( "tst/testinstall" ),
DirectoriesLibrary( "tst/testextra" ),
];
TestDirectory( dirs, rec(exitGAP := true) );

Expand Down

0 comments on commit 31d7def

Please sign in to comment.