Idris2/tests
Sören Tempel c725b11c89 Flush standard out after writing prompt to it
On Unix-like operating systems stdio.h is usually line-buffered. As
putStr uses fputs(3) from stdio.h internally, output will be written to
standard out after a newline character is written to the buffer. Since
the prompt does not contain a newline, it will only be written to
standard output after the user presses return. I encountered this issue
on Alpine Linux which uses musl libc (instead of glibc). However, I
believe this issue is likely also reproducible with glibc. This commit
fixes this issue by flushing standard output after writing the prompt to
it. Surprisingly, `src/Idris/IDEMode/REPL.idr` already does this
correctly, `src/Idris/REPL.idr` does not though.
2021-04-09 15:17:00 +01:00
..
base Flush standard out after writing prompt to it 2021-04-09 15:17:00 +01:00
chez Flush standard out after writing prompt to it 2021-04-09 15:17:00 +01:00
codegen/con001 Various improvements (#1286) 2021-04-09 13:02:37 +01:00
gambit/bitops001 Add Data.Bits to base (#1033) 2021-03-04 20:59:56 +00:00
ideMode Identify prefix and postfix record projections (#1183) 2021-03-15 13:40:13 +00:00
idris2 Flush standard out after writing prompt to it 2021-04-09 15:17:00 +01:00
node Flush standard out after writing prompt to it 2021-04-09 15:17:00 +01:00
prelude/reg001 Restore Bool operators precedence 2020-07-18 05:49:35 -07:00
racket Patch CVs and sleep in Racket (#1059) 2021-03-15 13:43:12 +00:00
refc [ new ] support record projections in refc backend (#1054) 2021-02-15 10:35:46 +00:00
templates fixed whitespace for *.idr,*.ipkg,*.tex,*.yaff, and *.lidr 2021-01-22 15:08:49 +00:00
ttimp Correct multiplicities when checking Pi binders 2021-03-09 17:23:05 +00:00
typedd-book Add Data.Bits to base (#1033) 2021-03-04 20:59:56 +00:00
Main.idr Support Multi-declarations (#1280) 2021-04-07 12:21:17 +01:00
Makefile [ install ] Check if 'realpath' exists for Chez and Racket backends (#1210) 2021-04-06 15:42:04 +01:00
README.md Test templates (#585) 2020-11-27 15:40:02 +00:00
tests.ipkg [ re #1162 ] Test without install (#1240) 2021-04-05 11:27:56 +01: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.