This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
(executables
|
||||
(names foo)
|
||||
(libraries dune_action_plugin))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
open Dune_action_plugin.V1
|
||||
|
||||
let () = run (return (print_endline "Hello from foo!"))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(cram
|
||||
(deps
|
||||
(glob_files bin/*.exe)))
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
This test checks that executable that uses 'dynamic-run'
|
||||
|
||||
but requires no dependencies can be successfully run.
|
||||
|
||||
$ cat > dune-project << EOF
|
||||
> (lang dune 2.0)
|
||||
> (using action-plugin 0.1)
|
||||
> EOF
|
||||
|
||||
$ cat > dune << EOF
|
||||
> (rule
|
||||
> (alias runtest)
|
||||
> (action (dynamic-run ./foo.exe)))
|
||||
> EOF
|
||||
|
||||
$ cp ./bin/foo.exe ./
|
||||
|
||||
$ dune runtest
|
||||
Hello from foo!
|
||||
Loading…
Add table
Add a link
Reference in a new issue