Skip to content

Commit

Permalink
test: reproduce ocaml#4162
Browse files Browse the repository at this point in the history
cram doesn't like spaces in paths

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Oct 9, 2021
1 parent e03257d commit bd9deda
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/blackbox-tests/test-cases/gh4162.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Cram doesn't like tests in paths

$ mkdir "aaa bbb" && cd "aaa bbb"
$ cat >dune-project <<EOF
> (lang dune 3.0)
> (cram enable)
> EOF

$ cat >foo.t <<EOF
> $ echo foo
> EOF

$ cat foo.t
$ echo foo

$ dune build @foo
sh (internal) (exit 1)
(cd _build/.sandbox/54ffcedad804d81955c7b33d18d42e68/default && /run/current-system/sw/bin/sh /var/folders/nc/x9_nmmsj0rjbfyzxb_kjk6qr0000gn/T/build_95f84b_dune/dune_cram_01b015_.foo.t/main.sh)
/var/folders/nc/x9_nmmsj0rjbfyzxb_kjk6qr0000gn/T/build_95f84b_dune/dune_cram_01b015_.foo.t/main.sh: line 5: printf: bbb/_build/.sandbox/54ffcedad804d81955c7b33d18d42e68/default:$TESTCASE_ROOT=$TESTCASE_ROOT/aaa: invalid number
-> required by alias foo
[1]

0 comments on commit bd9deda

Please sign in to comment.