Add tests for missing locations when running programs
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
d484f7b0fa
commit
4483627348
|
@ -448,6 +448,14 @@
|
|||
test-cases/misc
|
||||
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||
|
||||
(alias
|
||||
(name missing-loc-run)
|
||||
(deps (package dune) (source_tree test-cases/missing-loc-run))
|
||||
(action
|
||||
(chdir
|
||||
test-cases/missing-loc-run
|
||||
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||
|
||||
(alias
|
||||
(name multi-dir)
|
||||
(deps (package dune) (source_tree test-cases/multi-dir))
|
||||
|
@ -789,6 +797,7 @@
|
|||
(alias merlin-tests)
|
||||
(alias meta-gen)
|
||||
(alias misc)
|
||||
(alias missing-loc-run)
|
||||
(alias multi-dir)
|
||||
(alias multiple-private-libs)
|
||||
(alias no-installable-mode)
|
||||
|
@ -878,6 +887,7 @@
|
|||
(alias merlin-tests)
|
||||
(alias meta-gen)
|
||||
(alias misc)
|
||||
(alias missing-loc-run)
|
||||
(alias multi-dir)
|
||||
(alias no-installable-mode)
|
||||
(alias no-name-field)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
(alias
|
||||
(name runtest)
|
||||
(action (run ./foo.exe)))
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.1)
|
|
@ -0,0 +1,13 @@
|
|||
Exact path provided by the user:
|
||||
|
||||
$ dune runtest --root precise-path
|
||||
Entering directory 'precise-path'
|
||||
No rule found for foo.exe
|
||||
[1]
|
||||
|
||||
Path that needs to be searched:
|
||||
|
||||
$ dune runtest --root search-path
|
||||
Entering directory 'search-path'
|
||||
Error: Program foo-does-not-exist not found in the tree or in PATH (context: default)
|
||||
[1]
|
|
@ -0,0 +1,3 @@
|
|||
(alias
|
||||
(name runtest)
|
||||
(action (run foo-does-not-exist)))
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.1)
|
Loading…
Reference in New Issue