Idris2/tests
Hattori, Hiroki 844ea28149
- [RefC] delete unnecessary conversion to keep code simply. (#3176)
* - [RefC] delete unnecessary conversion to keep code simply.
- [RefC] rename some C functions to confliction safe.

* make the linter feels good.

* Get me a job as a linter slave.

* [RefC] Added hard fail for unsupported primitives.

* Fix typo.
2024-01-14 11:17:34 -06:00
..
allbackends [ fix ] Support waiting for popen2-created processes 2023-12-19 23:03:31 +03:00
allschemes [ base ] Add bindings for ieee Double number consts (#3116) 2023-11-09 14:01:40 +00:00
base [ fix ] Correctly manage the empty file case while reading a file 2023-12-21 13:30:30 -06:00
chez Group tests by directory 2023-09-07 14:57:22 +01:00
codegen [ test ] clean_names to make test outputs neater (#3156) 2023-12-08 14:10:37 +00:00
contrib [ test ] Add tests for GetOpt 2023-12-30 14:22:51 -06:00
gambit/bitops001 Add testing utilities script 2023-09-07 14:57:22 +01:00
ideMode Add testing utilities script 2023-09-07 14:57:22 +01:00
idris2 [ prelude ] Make able to implement provably total showPrec recursively 2023-12-26 10:16:57 +00:00
node make test more resillient 2024-01-06 21:40:30 -06:00
prelude Remove trivial testing input files 2023-09-07 14:57:22 +01:00
racket [ fix #3103, #3104 ] Disable broken tests 2023-11-29 17:01:26 +00:00
refc - [RefC] delete unnecessary conversion to keep code simply. (#3176) 2024-01-14 11:17:34 -06:00
templates Add testing utilities script 2023-09-07 14:57:22 +01:00
ttimp Add testing utilities script 2023-09-07 14:57:22 +01:00
typedd-book Add testing utilities script 2023-09-07 14:57:22 +01:00
vmcode/basic001 Add testing utilities script 2023-09-07 14:57:22 +01:00
Main.idr [ fix #3103, #3104 ] Disable broken tests 2023-11-29 17:01:26 +00:00
Makefile Separate support derivation (and small related tweaks to the Makefile) (#3172) 2023-12-27 08:14:03 -06:00
README.md [ re #2649 ] Describe test naming pattern 2022-11-11 09:33:09 +01:00
tests.ipkg Set PREFIX for tests 2021-04-19 11:23:58 +01:00
testutils.sh Separate support derivation (and small related tweaks to the Makefile) (#3172) 2023-12-27 08:14:03 -06:00

Tests

Note: The commands listed in this section should be run from the repository's root folder.

Run all tests: make test

To run only a subset of the tests use: make test only=NAME. NAME is matched against the path to each test case.

Examples:

  • make test only=chez will run all Chez Scheme tests.
  • make test only=ttimp/basic will run all basic tests for TTImp.
  • make test only=idris2/basic001 will run a specific test.

Templates for common test instances can be found in the templates folder.

There is no defined naming convention for adding tests, but the pattern has been:

  • a sub-directory in the relevant test section (idris2, refc, etc.)
  • with a descriptive name followed by a 3-digit number (e.g. envflags001 is the first test checking the environment flags functions)
  • containing:
    • an Idris file importing the relevant modules and containing the test function(s)
    • a run file which is a shell script that runs the test (see the existing tests for examples for this)
    • an expected file containing the expected output