Conformance tests
Closed this issue · 2 comments
quasilyte commented
Todo: implement tests that check generated code correctness.
Only observable behavior is tested.
These tests shoul work for all supported code generation backends.
quasilyte commented
To add a new test:
- add function (or variable) to be tested into
emacs/conformance
package. - add code that tests translated package with
evalCall
for functions andevalVar
for variables totst/conformance
package.
One-shot test execution: ./scripts/tst/check-conformance
.
Another way to run tests: ./sripts/tst/daemon_start && go test -v tst/conformance && ./scripts/tst/daemon_stop
.
For interactive testing, ./scripts/tst/daemon_start
is used.
quasilyte commented
The list of conformance tests will grow over time.
Closing the issue.