Skip to content

Commit

Permalink
Update tests
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 7, 2020
1 parent e1a3830 commit 37f6af9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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 @@ -88,6 +88,18 @@ subdir stanzas can also appear in included files
> (action (with-stdout-to hello.txt (echo "Hello from subdir\n")))))
> EOF
$ dune build --root . subdir/hello.txt
File "dune.inc", line 1, characters 0-90:
1 | (subdir subdir
2 | (rule
3 | (action (with-stdout-to hello.txt (echo "Hello from subdir\n")))))
Error: Using a `subdir' stanza within an `include'd file is only available
since version 2.7 of the dune language. Please update your dune-project file
to have (lang dune 2.7).
[1]
$ cat >dune-project <<EOF
> (lang dune 2.7)
> EOF
$ dune build --root . subdir/hello.txt
$ cat _build/default/subdir/hello.txt
Hello from subdir

Expand Down

0 comments on commit 37f6af9

Please sign in to comment.