Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb committed Aug 6, 2020
1 parent 155c7a5 commit dd7db2a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/blackbox-tests/test-cases/subdir-stanza.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,19 @@ subdir stanzas can also appear in included files
$ dune build --root . subdir/hello.txt
$ cat _build/default/subdir/hello.txt
Hello from subdir

Include stanzas within subdir stanzas

$ mkdir -p subdir-include/a; cd subdir-include
$ cat >dune-project <<EOF
> (lang dune 2.5)
> EOF
$ cat >dune <<EOF
> (subdir a (include dune.inc))
> EOF
$ cat >a/dune.inc <<EOF
> (rule (with-stdout-to hello.txt (echo Hello!)))
> EOF
$ dune build --root . a/hello.txt
$ cat _build/default/a/hello.txt
Hello!

0 comments on commit dd7db2a

Please sign in to comment.