Change tst/testall.g to quit GAP with exit status indicating outcome#31
Change tst/testall.g to quit GAP with exit status indicating outcome#31fingolfin wants to merge 1 commit into
Conversation
This is what we want for e.g. tests in the package distro
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #31 +/- ##
==========================================
- Coverage 93.71% 93.44% -0.28%
==========================================
Files 3 3
Lines 175 183 +8
==========================================
+ Hits 164 171 +7
- Misses 11 12 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This causes CI to pass but only because we now quit GAP with an exit code in I don't like papering over the issue, so I'll not merge this for now |
|
Ah, the failures are not new: #22 |
|
The test file is not very useful right now either (other than showing that the test setup is broken). @RussWoodroofe added in PR #16 (thanks you!), but right now all it does is run all tests in But more worryingly, this test setup relies on the GAP function Right now the only way for a complete solution I can think of is to replace this test setup by a different one that is not driven by GAP, but rather by python/perl/a shell script/whatever. That said, perhaps we can come up with a way to at least patch this enough to be useful? |
|
I'd understood the brief for GAP testing to be to run some code, and compare its output with a standard output. The routine I wrote makes this possible: running a child gap instance in package mode, and put the output to the standard terminal. So, the kinds of tests that one can do with this are for conflicts between other packages and package mode and/or the xgap library. I'd be happy to do some extra plumbing to return exit codes. |
This is what we want for e.g. tests in the package distro