mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-30 07:02:24 +03:00
47c2de3148
A common issue for users is that the behaviour of the various repl commands are not documented anywhere despite some of them having complex behaviour (e.g. `:set` which accepts a specific set of options). This implements the ability to call `:?|:h|:help` on repl commands to request detailed help for a specific repl command, while preserving the behaviour that calling the help command without any arguments prints the general help text. Generic help is defined as the first line of the help text. Detailed help is defined as the entire help text. This means that `:help :t`, for example, does not error (there is no detailed help) but instead just prints the single line of help text. * [ repl ] Use unlines for detailed help (see #2087) Ideally, the lines affected should be multiline strings. But for some arcane reason, newlines in those get swallowed in Nix and Windows **CI** only Ô.o This was already documented in issue #2087. * [ new ] --except for golden testing lib To allow CI to pass despite #2087 Co-authored-by: Guillaume Allais <guillaume.allais@ens-lyon.org>
23 lines
731 B
Makefile
23 lines
731 B
Makefile
INTERACTIVE ?= --interactive
|
|
threads ?= $(shell (nproc || sysctl -n hw.ncpu) 2>/dev/null || echo 1)
|
|
|
|
.PHONY: testbin test
|
|
|
|
test:
|
|
./build/exec/runtests $(IDRIS2) $(INTERACTIVE) --timing --failure-file failures --threads $(threads) --only $(only) --except $(except)
|
|
|
|
retest:
|
|
./build/exec/runtests $(IDRIS2) $(INTERACTIVE) --timing --failure-file failures --threads $(threads) --only-file failures --only $(only) --except $(except)
|
|
|
|
testbin:
|
|
${IDRIS2} --build tests.ipkg
|
|
|
|
clean:
|
|
$(RM) failures
|
|
$(RM) -r build
|
|
$(RM) -r **/**/build
|
|
@find . -type f -name 'output' -exec rm -rf {} \;
|
|
@find . -type f -name '*.ttc' -exec rm -f {} \;
|
|
@find . -type f -name '*.ttm' -exec rm -f {} \;
|
|
@find . -type f -name '*.ibc' -exec rm -f {} \;
|