satyrographos
satyrographos copied to clipboard
Add testsuite modules
Here are some ideas to support testing frameworks like https://github.com/zeptometer/satysfi-test
- Add a new module type
TestSuitewhose name suffix is*-testsuite.- Any modules should not depend on
*-testcasemodules. This prevents circular dependency of test cases of a fundamental library and a popular testing framework.
- Any modules should not depend on
We also need a way to tell test result to Satyrographos.
- Prepare autogen library
%resultwith a function that tells a result to Satyrographostell-result (tag : string) (value : string) : unit
- Add a new build command
(assert-eq-result <job-name> <tag> <expected-value>)- This compares result stored
Internally, tell-result stores the value in crossref entry satyrographos-result-<crossref-name> in file <job-name>.satysfi-aux and assert-eq-result gets it and compare the value with <expected-value>.
This will mitigate this situation:
- backward-incompatible enumitem is released:
- some libraries use enumitem to verify their packages; thus they should be removed from the snapshots.
https://github.com/na4zagin3/satyrographos-repo/pull/412