Test case for excluding missing module

Setting the field modules as follows (modules (:standard \ foo)) where foo
doesn't exist is an error.
This commit is contained in:
Rudi Grinberg 2018-02-15 17:09:08 +07:00
parent 9e4cc84370
commit 7977b8371a
3 changed files with 17 additions and 0 deletions

View File

@ -358,3 +358,13 @@
(progn
(run ${exe:cram.exe} run.t)
(diff? run.t run.t.corrected)))))))
(alias
((name runtest)
(deps ((files_recursively_in test-cases/exclude-missing-module)))
(action
(chdir test-cases/exclude-missing-module
(setenv JBUILDER ${bin:jbuilder}
(progn
(run ${exe:cram.exe} run.t)
(diff? run.t run.t.corrected)))))))

View File

@ -0,0 +1,3 @@
(library
((name foo)
(modules (:standard \ fake))))

View File

@ -0,0 +1,4 @@
$ $JBUILDER build --display short --root . -j 1
File "jbuild", line 1, characters 0-50:
Error: Module Fake doesn't exist.
[1]