Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions test/blackbox-tests/test-cases/dune-binaries.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
$ cat >dune <<EOF
> (env
> (_
> (binaries (test.sh as test))
> (binaries (test.sh as foobar))
> (flags :standard)))
>
> (rule
> (target message.txt)
> (action (with-stdout-to %{target} (run test))))
> (action (with-stdout-to %{target} (run foobar))))
> EOF

$ cat >test.sh <<EOF
Expand All @@ -20,9 +20,7 @@
> EOF

$ chmod +x test.sh
$ dune build
Error: execve(.bin/test): No such file or directory
-> required by _build/default/message.txt
-> required by alias all
-> required by alias default
[1]

# Somehow, the command below works on nix in CI (but nowhere else?!)

$ (dune build ./message.txt &> /dev/null) || true
12 changes: 6 additions & 6 deletions test/blackbox-tests/test-cases/dune-workspace-binaries.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ a dune-workspace file:
>
> (env
> (_
> (binaries (test.sh as test))
> (binaries (test.sh as foobar))
> (flags :standard)))
> EOF

Expand All @@ -17,7 +17,7 @@ a dune-workspace file:
$ cat >dune <<EOF
> (rule
> (target message.txt)
> (action (with-stdout-to %{target} (run test))))
> (action (with-stdout-to %{target} (run foobar))))
> EOF

$ cat >test.sh <<EOF
Expand All @@ -26,10 +26,10 @@ a dune-workspace file:
> EOF

$ chmod +x test.sh
$ dune build
File "dune", lines 1-3, characters 0-76:
$ dune build ./message.txt
File "dune", lines 1-3, characters 0-78:
1 | (rule
2 | (target message.txt)
3 | (action (with-stdout-to %{target} (run test))))
Error: No rule found for .bin/test
3 | (action (with-stdout-to %{target} (run foobar))))
Error: No rule found for .bin/foobar
[1]
Loading