This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
(library
|
||||
(name lib1)
|
||||
(public_name lib1)
|
||||
(modules Lib1))
|
||||
|
||||
(alias
|
||||
(name runtest)
|
||||
(package lib1)
|
||||
(action (run ./test1.exe)))
|
||||
|
||||
(executable
|
||||
(name test1)
|
||||
(modules Test1)
|
||||
(libraries lib1))
|
||||
|
||||
|
||||
(library
|
||||
(name lib2)
|
||||
(public_name lib2)
|
||||
(modules Lib2))
|
||||
|
||||
(alias
|
||||
(name runtest)
|
||||
(package lib2)
|
||||
(action (run ./test2.exe)))
|
||||
|
||||
(executable
|
||||
(name test2)
|
||||
(modules Test2)
|
||||
(libraries lib2))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
opam-version: "1.2"
|
||||
name: "lib1"
|
||||
build: [
|
||||
["dune" "build" "-p" name "-j" jobs]
|
||||
["dune" "runtest" "-p" name "-j" jobs]
|
||||
]
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
opam-version: "1.2"
|
||||
name: "lib2"
|
||||
build: [
|
||||
["dune" "build" "-p" name "-j" jobs]
|
||||
["dune" "runtest" "-p" name "-j" jobs]
|
||||
]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
$ dune runtest -p lib1 --debug-dependency-path
|
||||
(cd _build/default && ./test1.exe)
|
||||
running test 1
|
||||
|
|
@ -0,0 +1 @@
|
|||
let () = print_endline "running test 1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
let () = print_endline "THIS TEST SHOULD NOT RUN"
|
||||
Loading…
Add table
Add a link
Reference in a new issue