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 @@
print_endline "Bar";

View file

@ -0,0 +1,8 @@
(executable
(modules foo)
(name foo))
(executable
(modules bar)
(name bar)
(public_name dunetestbar))

View file

@ -0,0 +1 @@
print_endline "Foo";

View file

@ -0,0 +1,31 @@
$ dune clean
$ dune exec --no-build ./foo.exe
Error: Program './foo.exe' isn't built yet. You need to build it first or
remove the '--no-build' option.
[1]
$ dune exec ./foo.exe
Foo
$ dune exec --profile release ./foo.exe
Foo
$ dune exec dunetestbar --no-build
Error: Program 'dunetestbar' isn't built yet. You need to build it first or
remove the '--no-build' option.
[1]
$ dune exec dunetestbar
Bar
#Test the at exit bookkeeping of dune is done in the right directory
$ dune clean
$ mkdir test
$ mkdir test/_build
$ (cd test; dune exec --root .. -- dunetestbar)
Entering directory '..'
Leaving directory '..'
Bar
$ ls -a test/_build
.
..