Skip to content

Commit

Permalink
Check manual examples for all chapters even if one fails
Browse files Browse the repository at this point in the history
Closes #1138
  • Loading branch information
Alexander Konovalov committed Mar 14, 2017
1 parent 7e3bb10 commit 8cd17b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions etc/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ popd
COVDIR=coverage
mkdir -p $COVDIR


case ${TEST_SUITE} in
testmanuals)
bin/gap.sh -q tst/extractmanuals.g
Expand All @@ -69,13 +68,19 @@ testmanuals)
QUIT_GAP(0);
GAPInput

TESTMANUALSPASS=yes
for ch in tst/testmanuals/*.tst
do
bin/gap.sh -q -L testmanuals.wsp --cover $COVDIR/$(basename $ch).coverage <<GAPInput
bin/gap.sh -q -L testmanuals.wsp --cover $COVDIR/$(basename $ch).coverage <<GAPInput || TESTMANUALSPASS=no
TestManualChapter("$ch");
QUIT_GAP(0);
GAPInput
done

if [[ $TESTMANUALSPASS = no ]]
then
exit 1
fi

# while we are at it, also test the workspace code
bin/gap.sh -q --cover $COVDIR/workspace.coverage <<GAPInput
Expand Down

0 comments on commit 8cd17b5

Please sign in to comment.