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 12, 2017
1 parent 7e3bb10 commit e98c30e
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions etc/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ popd
COVDIR=coverage
mkdir -p $COVDIR


TestManualChapter () {
if ! bin/gap.sh -q -L testmanuals.wsp --cover $COVDIR/$(basename $1).coverage \
<(echo "TestManualChapter(\"$1\"); QUIT_GAP(0);")
then
TESTMANUALSPASS=no
fi
}

case ${TEST_SUITE} in
testmanuals)
bin/gap.sh -q tst/extractmanuals.g
Expand All @@ -69,14 +76,17 @@ 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
TestManualChapter("$ch");
QUIT_GAP(0);
GAPInput
TestManualChapter $ch
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
SetUserPreference("ReproducibleBehaviour", true);
Expand Down

0 comments on commit e98c30e

Please sign in to comment.