This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
(* -*- tuareg -*- *)
|
||||
|
||||
let () = Jbuild_plugin.V1.send {|
|
||||
(alias
|
||||
(name runtest)
|
||||
(action (echo "ocaml syntax")))
|
||||
|}
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
$ dune runtest --force
|
||||
ocaml syntax
|
||||
|
||||
Check that (include ...) works when generated using OCaml syntax.
|
||||
|
||||
$ mkdir -p foo && cd foo
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 2.5)
|
||||
> EOF
|
||||
$ cat >dune <<EOF
|
||||
> (* -*- tuareg -*- *)
|
||||
> let () = Jbuild_plugin.V1.send {|(include dune.inc)|}
|
||||
> EOF
|
||||
$ cat >dune.inc <<EOF
|
||||
> (rule (with-stdout-to foo.txt (echo Hola!)))
|
||||
> EOF
|
||||
$ dune build --root . ./foo.txt
|
||||
$ cat _build/default/foo.txt
|
||||
Hola!
|
||||
Loading…
Add table
Add a link
Reference in a new issue