Skip to content

Commit 24ed11d

Browse files
committed
test{all/standard}.g: do not finish early
1 parent 6977c55 commit 24ed11d

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

tst/testall.g

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
LoadPackage("digraphs");
2-
3-
DigraphsMakeDoc();
4-
if DigraphsTestInstall()
5-
and DigraphsTestStandard()
6-
and DIGRAPHS_RunTest(DigraphsTestManualExamples)
7-
and DigraphsTestExtreme() then
8-
FORCE_QUIT_GAP(0);
1+
#############################################################################
2+
##
3+
#W testall.g
4+
#Y Copyright (C) 2021 Wilf A. Wilson
5+
##
6+
## Licensing information can be found in the README file of this package.
7+
##
8+
#############################################################################
9+
##
10+
LoadPackage("digraphs", false);;
11+
opts := rec(earlyStop := false);
12+
if SizeBlist([DigraphsTestInstall(),
13+
DigraphsTestStandard(opts),
14+
DIGRAPHS_RunTest(DigraphsTestManualExamples),
15+
DigraphsTestExtreme(opts)]) = 4 then
16+
QUIT_GAP(0);
17+
else
18+
QUIT_GAP(1);
919
fi;
10-
11-
FORCE_QUIT_GAP(1);
20+
FORCE_QUIT_GAP(1); # if we ever get here, there was an error

tst/teststandard.g

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
#############################################################################
99
##
1010
LoadPackage("digraphs", false);;
11-
# These "{No} errors detected" lines currently have to be printed in this way
11+
# The "{No} errors detected" lines currently have to be printed in this way
1212
# to satisfy the automated GAP testing system that runs on Jenkins.
1313
# This requirement will hopefully go soon.
14-
if DigraphsTestInstall()
15-
and DigraphsTestStandard()
16-
and DIGRAPHS_RunTest(DigraphsTestManualExamples) then
14+
if SizeBlist([DigraphsTestInstall(),
15+
DigraphsTestStandard(rec(earlyStop := false)),
16+
DIGRAPHS_RunTest(DigraphsTestManualExamples)]) = 3 then
1717
Print("#I No errors detected while testing\n\n");
1818
QUIT_GAP(0);
1919
else

0 commit comments

Comments
 (0)