This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,15 @@
(executable
(name print)
(modules print))
(rule
(with-stdout-to print.ml
(echo "let () = print_endline \"MESSAGE\"")))
(rule
(alias runtest)
(action
(progn
(with-stdout-to output.expected (echo "MESSAGE\n"))
(with-stdout-to output.actual (run ./print.exe))
(diff? output.expected output.actual))))

View file

@ -0,0 +1 @@
(lang dune 2.5)

View file

@ -0,0 +1,9 @@
Test for problem in #2990
$ dune runtest
Make sure that `output.actual` is not inferred as a target:
$ dune build output.actual
Error: Don't know how to build output.actual
[1]