Skip to content

Commit

Permalink
CLI: given the name of a .tst file, call Test on it
Browse files Browse the repository at this point in the history
... instead of Read / READ_NORECOVERY. This is purely a convenience
feature: now one can for example run

    gap tst/testinstall/perm.tst

which is equivalent to

    gap -c 'Test("tst/testinstall/perm.tst");'

but shorter and easier to enter via shell command completion.
  • Loading branch information
fingolfin committed Sep 3, 2020
1 parent 9b8f5b7 commit 32ea105
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/init.g
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,9 @@ InstallAndCallPostRestore( function()
f := GAPInfo.InitFiles[i];
if IsRecord(f) then
status := READ_NORECOVERY(InputTextString(f.command));
elif EndsWith(f, ".tst") then
Test(f);
status := true;
else
status := READ_NORECOVERY(f);
fi;
Expand Down

0 comments on commit 32ea105

Please sign in to comment.