This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
print_endline "Bar";
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
(executable
|
||||
(modules foo)
|
||||
(name foo))
|
||||
|
||||
(executable
|
||||
(modules bar)
|
||||
(name bar)
|
||||
(public_name dunetestbar))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
print_endline "Foo";
|
||||
|
|
@ -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
|
||||
.
|
||||
..
|
||||
Loading…
Add table
Add a link
Reference in a new issue