Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing a .tst file as a command line argument to gap will now invoke Test on it #4099

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course one could try to make this more robust: e.g. first check if f refers to an existing and readable file, and if not... dunno, what? Right now, one gets a break loop, which says "type 'quit;' to quit to outer loop" but if one does that, GAP actually quits (because the main REPL has not yet been started). Hmm

else
status := READ_NORECOVERY(f);
fi;
Expand Down