This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
Cram and public binaries with an absolute build directory
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 2.8)
|
||||
> (cram enable)
|
||||
> (name public-name-exe-test)
|
||||
> EOF
|
||||
$ touch public-name-exe-test.opam
|
||||
|
||||
$ mkdir helper
|
||||
$ cat >helper/dune <<EOF
|
||||
> (executable (public_name helper))
|
||||
> EOF
|
||||
$ cat >helper/helper.ml <<EOF
|
||||
> print_endline "Helper launched successfully";;
|
||||
> EOF
|
||||
|
||||
$ mkdir tests
|
||||
$ cat >tests/run.t <<EOF
|
||||
> $ helper
|
||||
> Helper launched successfully
|
||||
> EOF
|
||||
$ echo "(cram (deps %{bin:helper}))" > tests/dune
|
||||
|
||||
Running `dune runtest` with a relative build directory works
|
||||
|
||||
$ DUNE_BUILD_DIR=./_other_build dune runtest
|
||||
|
||||
$ export NEW_BUILD_DIR="$PWD/_other_build"
|
||||
$ DUNE_BUILD_DIR="$NEW_BUILD_DIR" dune runtest --auto-promote
|
||||
Loading…
Add table
Add a link
Reference in a new issue