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,4 @@
(executable
(name foo)
(public_name foo)
(promote (until-clean)))

View file

@ -0,0 +1,4 @@
(lang dune 1.11)
(package
(name foo))

View file

@ -0,0 +1 @@
print_endline "Hello Caml"

View file

@ -0,0 +1,18 @@
This tests shows how all promotion to the source dir may be disabled. This
includes .install files and manually promoted executables
$ dune build -p foo --disable-promotion
foo.exe and foo.install are absent
$ test -f foo.exe && echo "foo.exe exists"
[1]
$ test -f foo.install && echo "foo.install exists"
[1]
now we build without the option and see that they are present:
$ dune build -p foo
$ test -f foo.exe && echo "foo.exe exists"
foo.exe exists
$ test -f foo.install && echo "foo.install exists"
foo.install exists