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 <[email protected]>
  • Loading branch information
nojb committed Jul 18, 2020
1 parent 4aa1c51 commit dd9fc99
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/blackbox-tests/test-cases/copy_files.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,34 @@ Test (alias ...) and (mode ...) fields:

$ cat test3/foo.txt
Foo

Test external paths:

$ mkdir -p test4
$ cat >test4/dune-project <<EOF
> (lang dune 2.6)
> EOF
$ echo Hola > foo.txt
$ P=$(pwd)/foo.txt
$ echo $P
$TESTCASE_ROOT/foo.txt
$ cat >test4/dune <<EOF
> (copy_files $P)
> EOF
$ dune build --root test4 foo.txt
Entering directory 'test4'
File "dune", line 1, characters 12-105:
1 | (copy_files $TESTCASE_ROOT/foo.txt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error:
$TESTCASE_ROOT/foo.txt
is an absolute path. This 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 >test4/dune-project <<EOF
> (lang dune 2.7)
> EOF
$ dune build --root test4 foo.txt
Entering directory 'test4'
$ cat test4/_build/default/foo.txt
Hola

0 comments on commit dd9fc99

Please sign in to comment.