Update tests for new variables syntax
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
2257a2057b
commit
ec14661a01
8
doc/dune
8
doc/dune
|
@ -1,5 +1,5 @@
|
||||||
(rule
|
(rule
|
||||||
(with-stdout-to dune.1 (run ${bin:dune} --help=groff)))
|
(with-stdout-to dune.1 (run %{bin:dune} --help=groff)))
|
||||||
|
|
||||||
(install
|
(install
|
||||||
(section man)
|
(section man)
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(with-stdout-to dune-config.5
|
(with-stdout-to dune-config.5
|
||||||
(run ${bin:jbuilder} help config --man-format=groff)))
|
(run %{bin:jbuilder} help config --man-format=groff)))
|
||||||
|
|
||||||
(install
|
(install
|
||||||
(section man)
|
(section man)
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
(targets dune.inc.gen)
|
(targets dune.inc.gen)
|
||||||
(deps (package dune))
|
(deps (package dune))
|
||||||
(action
|
(action
|
||||||
(with-stdout-to ${@}
|
(with-stdout-to %{@}
|
||||||
(run bash ${path:update-jbuild.sh}))))
|
(run bash %{path:update-jbuild.sh}))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
(deps (package dune) (source_tree sample-projects/hello_world))
|
(deps (package dune) (source_tree sample-projects/hello_world))
|
||||||
(action
|
(action
|
||||||
(chdir sample-projects/hello_world
|
(chdir sample-projects/hello_world
|
||||||
(run ${exe:../test/blackbox-tests/cram.exe} -test run.t))))
|
(run %{exe:../test/blackbox-tests/cram.exe} -test run.t))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps (package dune) (source_tree sample-projects/with-configure-step))
|
(deps (package dune) (source_tree sample-projects/with-configure-step))
|
||||||
(action
|
(action
|
||||||
(chdir sample-projects/with-configure-step
|
(chdir sample-projects/with-configure-step
|
||||||
(run ${exe:../test/blackbox-tests/cram.exe} -test run.t))))
|
(run %{exe:../test/blackbox-tests/cram.exe} -test run.t))))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(rule
|
(rule
|
||||||
((targets (hello_world.output))
|
((targets (hello_world.output))
|
||||||
(action (with-stdout-to ${@} (run ${bin:hello_world})))))
|
(action (with-stdout-to %{@} (run %{bin:hello_world})))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
((name runtest)
|
((name runtest)
|
||||||
(action (run diff -uw ${path:hello_world.expected} ${path:hello_world.output}))))
|
(action (run diff -uw %{path:hello_world.expected} %{path:hello_world.output}))))
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
((fallback)
|
((fallback)
|
||||||
(targets (config))
|
(targets (config))
|
||||||
(deps (config.defaults))
|
(deps (config.defaults))
|
||||||
(action (copy ${<} ${@}))))
|
(action (copy %{<} %{@}))))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
((targets (config.full))
|
((targets (config.full))
|
||||||
(deps (config_common.ml config))
|
(deps (config_common.ml config))
|
||||||
(action (run ${OCAML} ${path:real_configure.ml}))))
|
(action (run %{OCAML} %{path:real_configure.ml}))))
|
||||||
|
|
|
@ -8,5 +8,5 @@
|
||||||
(rule
|
(rule
|
||||||
((targets (config.ml))
|
((targets (config.ml))
|
||||||
(deps (../config.full))
|
(deps (../config.full))
|
||||||
(action (copy ${<} ${@}))))
|
(action (copy %{<} %{@}))))
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(executable
|
(executable
|
||||||
(name mk))
|
(name mk))
|
||||||
|
|
||||||
(rule (with-stdout-to flags.sexp (run ./mk.exe -ocamlv ${ocaml_version})))
|
(rule (with-stdout-to flags.sexp (run ./mk.exe -ocamlv %{ocaml_version})))
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
(rule
|
(rule
|
||||||
(targets dune.inc.gen)
|
(targets dune.inc.gen)
|
||||||
(deps (source_tree test-cases))
|
(deps (source_tree test-cases))
|
||||||
(action (with-stdout-to ${@} (run ./gen_tests.exe))))
|
(action (with-stdout-to %{@} (run ./gen_tests.exe))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/aliases
|
test-cases/aliases
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name bad-alias-error)
|
(name bad-alias-error)
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/bad-alias-error
|
test-cases/bad-alias-error
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name block-strings)
|
(name block-strings)
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/block-strings
|
test-cases/block-strings
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name byte-code-only)
|
(name byte-code-only)
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/byte-code-only
|
test-cases/byte-code-only
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name c-stubs)
|
(name c-stubs)
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/c-stubs
|
test-cases/c-stubs
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name configurator)
|
(name configurator)
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/configurator
|
test-cases/configurator
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-platforms win -test run.t)
|
(run %{exe:cram.exe} -skip-platforms win -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/copy_files
|
test-cases/copy_files
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name cross-compilation)
|
(name cross-compilation)
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/cross-compilation
|
test-cases/cross-compilation
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name custom-build-dir)
|
(name custom-build-dir)
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/custom-build-dir
|
test-cases/custom-build-dir
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name depend-on-the-universe)
|
(name depend-on-the-universe)
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/depend-on-the-universe
|
test-cases/depend-on-the-universe
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name dune-ppx-driver-system)
|
(name dune-ppx-driver-system)
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/dune-ppx-driver-system
|
test-cases/dune-ppx-driver-system
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name dune-project-edition)
|
(name dune-project-edition)
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/dune-project-edition
|
test-cases/dune-project-edition
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name env)
|
(name env)
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/env
|
test-cases/env
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name exclude-missing-module)
|
(name exclude-missing-module)
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/exclude-missing-module
|
test-cases/exclude-missing-module
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name exec-cmd)
|
(name exec-cmd)
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/exec-cmd
|
test-cases/exec-cmd
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name findlib)
|
(name findlib)
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/findlib
|
test-cases/findlib
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name force-test)
|
(name force-test)
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/force-test
|
test-cases/force-test
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name gen-opam-install-file)
|
(name gen-opam-install-file)
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/gen-opam-install-file
|
test-cases/gen-opam-install-file
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github20)
|
(name github20)
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github20
|
test-cases/github20
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github24)
|
(name github24)
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github24
|
test-cases/github24
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github25)
|
(name github25)
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
./findlib-packages
|
./findlib-packages
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github25
|
test-cases/github25
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github534)
|
(name github534)
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github534
|
test-cases/github534
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github568)
|
(name github568)
|
||||||
|
@ -185,7 +185,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github568
|
test-cases/github568
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github597)
|
(name github597)
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github597
|
test-cases/github597
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github644)
|
(name github644)
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github644
|
test-cases/github644
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github660)
|
(name github660)
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github660
|
test-cases/github660
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github717-odoc-index)
|
(name github717-odoc-index)
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github717-odoc-index
|
test-cases/github717-odoc-index
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
(run %{exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -227,7 +227,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github734
|
test-cases/github734
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github759)
|
(name github759)
|
||||||
|
@ -235,7 +235,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github759
|
test-cases/github759
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github761)
|
(name github761)
|
||||||
|
@ -243,7 +243,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github761
|
test-cases/github761
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name github764)
|
(name github764)
|
||||||
|
@ -252,7 +252,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github764
|
test-cases/github764
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-platforms win -test run.t)
|
(run %{exe:cram.exe} -skip-platforms win -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -261,7 +261,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/github784
|
test-cases/github784
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name ignored_subdirs)
|
(name ignored_subdirs)
|
||||||
|
@ -269,7 +269,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/ignored_subdirs
|
test-cases/ignored_subdirs
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name include-loop)
|
(name include-loop)
|
||||||
|
@ -277,7 +277,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/include-loop
|
test-cases/include-loop
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name inline_tests)
|
(name inline_tests)
|
||||||
|
@ -285,7 +285,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/inline_tests
|
test-cases/inline_tests
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name installable-dup-private-libs)
|
(name installable-dup-private-libs)
|
||||||
|
@ -293,7 +293,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/installable-dup-private-libs
|
test-cases/installable-dup-private-libs
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name intf-only)
|
(name intf-only)
|
||||||
|
@ -301,7 +301,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/intf-only
|
test-cases/intf-only
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name js_of_ocaml)
|
(name js_of_ocaml)
|
||||||
|
@ -309,10 +309,10 @@
|
||||||
(action
|
(action
|
||||||
(setenv
|
(setenv
|
||||||
NODE
|
NODE
|
||||||
${bin:node}
|
%{bin:node}
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/js_of_ocaml
|
test-cases/js_of_ocaml
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name lib-available)
|
(name lib-available)
|
||||||
|
@ -320,7 +320,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/lib-available
|
test-cases/lib-available
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name link-deps)
|
(name link-deps)
|
||||||
|
@ -328,7 +328,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/link-deps
|
test-cases/link-deps
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name loop)
|
(name loop)
|
||||||
|
@ -336,7 +336,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/loop
|
test-cases/loop
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name menhir)
|
(name menhir)
|
||||||
|
@ -344,7 +344,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/menhir
|
test-cases/menhir
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name merlin-tests)
|
(name merlin-tests)
|
||||||
|
@ -352,7 +352,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/merlin-tests
|
test-cases/merlin-tests
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name meta-gen)
|
(name meta-gen)
|
||||||
|
@ -360,7 +360,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/meta-gen
|
test-cases/meta-gen
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name misc)
|
(name misc)
|
||||||
|
@ -368,7 +368,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/misc
|
test-cases/misc
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name multiple-private-libs)
|
(name multiple-private-libs)
|
||||||
|
@ -377,7 +377,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/multiple-private-libs
|
test-cases/multiple-private-libs
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
(run %{exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -386,7 +386,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/no-installable-mode
|
test-cases/no-installable-mode
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name null-dep)
|
(name null-dep)
|
||||||
|
@ -394,7 +394,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/null-dep
|
test-cases/null-dep
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name ocaml-syntax)
|
(name ocaml-syntax)
|
||||||
|
@ -402,7 +402,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/ocaml-syntax
|
test-cases/ocaml-syntax
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name ocamldep-multi-stanzas)
|
(name ocamldep-multi-stanzas)
|
||||||
|
@ -410,7 +410,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/ocamldep-multi-stanzas
|
test-cases/ocamldep-multi-stanzas
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name odoc)
|
(name odoc)
|
||||||
|
@ -419,7 +419,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/odoc
|
test-cases/odoc
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
(run %{exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -429,7 +429,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/odoc-unique-mlds
|
test-cases/odoc-unique-mlds
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
(run %{exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -440,7 +440,7 @@
|
||||||
test-cases/output-obj
|
test-cases/output-obj
|
||||||
(progn
|
(progn
|
||||||
(run
|
(run
|
||||||
${exe:cram.exe}
|
%{exe:cram.exe}
|
||||||
-skip-versions
|
-skip-versions
|
||||||
<4.06.0
|
<4.06.0
|
||||||
-skip-platforms
|
-skip-platforms
|
||||||
|
@ -455,7 +455,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/package-dep
|
test-cases/package-dep
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name ppx-rewriter)
|
(name ppx-rewriter)
|
||||||
|
@ -464,7 +464,7 @@
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/ppx-rewriter
|
test-cases/ppx-rewriter
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
(run %{exe:cram.exe} -skip-versions 4.02.3 -test run.t)
|
||||||
(diff? run.t run.t.corrected)))))
|
(diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -473,7 +473,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/private-public-overlap
|
test-cases/private-public-overlap
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name promote)
|
(name promote)
|
||||||
|
@ -481,7 +481,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/promote
|
test-cases/promote
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name quoting)
|
(name quoting)
|
||||||
|
@ -489,7 +489,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/quoting
|
test-cases/quoting
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name reason)
|
(name reason)
|
||||||
|
@ -497,7 +497,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/reason
|
test-cases/reason
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name redirections)
|
(name redirections)
|
||||||
|
@ -505,7 +505,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/redirections
|
test-cases/redirections
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name scope-bug)
|
(name scope-bug)
|
||||||
|
@ -513,7 +513,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/scope-bug
|
test-cases/scope-bug
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name scope-ppx-bug)
|
(name scope-ppx-bug)
|
||||||
|
@ -521,7 +521,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/scope-ppx-bug
|
test-cases/scope-ppx-bug
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name select)
|
(name select)
|
||||||
|
@ -529,7 +529,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/select
|
test-cases/select
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name syntax-versioning)
|
(name syntax-versioning)
|
||||||
|
@ -537,7 +537,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/syntax-versioning
|
test-cases/syntax-versioning
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name use-meta)
|
(name use-meta)
|
||||||
|
@ -545,7 +545,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/use-meta
|
test-cases/use-meta
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name utop)
|
(name utop)
|
||||||
|
@ -553,7 +553,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/utop
|
test-cases/utop
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name windows-diff)
|
(name windows-diff)
|
||||||
|
@ -561,7 +561,7 @@
|
||||||
(action
|
(action
|
||||||
(chdir
|
(chdir
|
||||||
test-cases/windows-diff
|
test-cases/windows-diff
|
||||||
(progn (run ${exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
(alias
|
(alias
|
||||||
(name x)
|
(name x)
|
||||||
(action (chdir ${ROOT} (echo "running in ${path-no-dep:.}\n"))))
|
(action (chdir %{ROOT} (echo "running in %{path-no-dep:.}\n"))))
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
(alias
|
(alias
|
||||||
(name x)
|
(name x)
|
||||||
(action (chdir ${ROOT} (echo "running in ${path-no-dep:.}\n"))))
|
(action (chdir %{ROOT} (echo "running in %{path-no-dep:.}\n"))))
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
(alias
|
(alias
|
||||||
(name x)
|
(name x)
|
||||||
(action (chdir ${ROOT} (echo "running in ${path-no-dep:.}\n"))))
|
(action (chdir %{ROOT} (echo "running in %{path-no-dep:.}\n"))))
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets dummy.ml)
|
(targets dummy.ml)
|
||||||
(action (with-stdout-to ${@} (echo ""))))
|
(action (with-stdout-to %{@} (echo ""))))
|
||||||
|
|
||||||
(library
|
(library
|
||||||
(name foo)
|
(name foo)
|
||||||
|
@ -19,4 +19,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name bar-source)
|
(name bar-source)
|
||||||
(deps bar.h)
|
(deps bar.h)
|
||||||
(action (echo "${read:bar.h}")))
|
(action (echo "%{read:bar.h}")))
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps f.exe)
|
(deps f.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps foo.install)
|
(deps foo.install)
|
||||||
(action (echo "${read:foo.install}")))
|
(action (echo "%{read:foo.install}")))
|
||||||
|
|
||||||
(documentation
|
(documentation
|
||||||
(mld_files (doc)))
|
(mld_files (doc)))
|
||||||
|
|
|
@ -6,5 +6,5 @@
|
||||||
(deps (glob_files optional.ml)
|
(deps (glob_files optional.ml)
|
||||||
(glob_files *optional.ml))
|
(glob_files *optional.ml))
|
||||||
(action
|
(action
|
||||||
(with-stdout-to ${@}
|
(with-stdout-to %{@}
|
||||||
(run echo "let () = print_endline \"Hello World\""))))
|
(run echo "let () = print_endline \"Hello World\""))))
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(package lib1)
|
(package lib1)
|
||||||
(deps test1.exe)
|
(deps test1.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
||||||
(executable
|
(executable
|
||||||
(name test1)
|
(name test1)
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(package lib2)
|
(package lib2)
|
||||||
(deps test2.exe)
|
(deps test2.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
||||||
(executable
|
(executable
|
||||||
(name test2)
|
(name test2)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps main.exe)
|
(deps main.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
||||||
(executable (name main))
|
(executable (name main))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps main.exe)
|
(deps main.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
||||||
(executable (name main))
|
(executable (name main))
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
(rule (run ${bin:echo} foo))
|
(rule (run %{bin:echo} foo))
|
|
@ -11,8 +11,8 @@
|
||||||
(echo "let () = print_int 42")
|
(echo "let () = print_int 42")
|
||||||
(echo "\n")
|
(echo "\n")
|
||||||
(echo "let () = print_int 43;;")))
|
(echo "let () = print_int 43;;")))
|
||||||
(flags (inline-test-runner ${library-name}
|
(flags (inline-test-runner %{library-name}
|
||||||
-source-tree-root ${ROOT} -diff-cmd -))))
|
-source-tree-root %{ROOT} -diff-cmd -))))
|
||||||
|
|
||||||
(library
|
(library
|
||||||
(name foo_tests)
|
(name foo_tests)
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps foo.dune)
|
(deps foo.dune)
|
||||||
(action (echo "${read:foo.dune}")))
|
(action (echo "%{read:foo.dune}")))
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
((runner_libraries (str))
|
((runner_libraries (str))
|
||||||
(flags
|
(flags
|
||||||
(inline-test-runner
|
(inline-test-runner
|
||||||
${library-name}
|
%{library-name}
|
||||||
-source-tree-root
|
-source-tree-root
|
||||||
${ROOT}
|
%{ROOT}
|
||||||
-diff-cmd
|
-diff-cmd
|
||||||
-))
|
-))
|
||||||
(generate_runner
|
(generate_runner
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
(name backend_simple)
|
(name backend_simple)
|
||||||
(modules ())
|
(modules ())
|
||||||
(inline_tests.backend
|
(inline_tests.backend
|
||||||
(generate_runner (run sed "s/(\\*TEST:\\(.*\\)\\*)/let () = \\1;;/" ${impl-files})
|
(generate_runner (run sed "s/(\\*TEST:\\(.*\\)\\*)/let () = \\1;;/" %{impl-files})
|
||||||
)))
|
)))
|
||||||
|
|
||||||
(library
|
(library
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(action (system "${lib-available:unix}")))
|
(action (system "%{lib-available:unix}")))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(action (system "${lib-available:library-that-surely-doesnt-exist} && exit 1 || exit 0")))
|
(action (system "%{lib-available:library-that-surely-doesnt-exist} && exit 1 || exit 0")))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(rule (copy ${read:x} a))
|
(rule (copy %{read:x} a))
|
||||||
(rule (copy ${read:y} b))
|
(rule (copy %{read:y} b))
|
||||||
|
|
||||||
(rule (progn (run true) (with-stdout-to x (echo b))))
|
(rule (progn (run true) (with-stdout-to x (echo b))))
|
||||||
(rule (progn (run true) (with-stdout-to y (echo a))))
|
(rule (progn (run true) (with-stdout-to y (echo a))))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name print-merlins)
|
(name print-merlins)
|
||||||
(deps lib/.merlin exe/.merlin)
|
(deps lib/.merlin exe/.merlin)
|
||||||
(action (run ./sanitize-dot-merlin/sanitize_dot_merlin.exe ${^})))
|
(action (run ./sanitize-dot-merlin/sanitize_dot_merlin.exe %{^})))
|
||||||
|
|
|
@ -43,4 +43,4 @@
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(action (echo "${read:META.foobar}")))
|
(action (echo "%{read:META.foobar}")))
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps ${SCOPE_ROOT}/023e1a58-4d08-11e7-a041-aa000008c8a6))
|
(deps %{SCOPE_ROOT}/023e1a58-4d08-11e7-a041-aa000008c8a6))
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
;; Test for ${^} with globs in rules
|
;; Test for %{^} with globs in rules
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets result expected)
|
(targets result expected)
|
||||||
(deps dune (glob_files *.txt))
|
(deps dune (glob_files *.txt))
|
||||||
(action (progn
|
(action (progn
|
||||||
(with-stdout-to result (echo ${^}))
|
(with-stdout-to result (echo %{^}))
|
||||||
(with-stdout-to expected (echo "dune a.txt b.txt c.txt")))))
|
(with-stdout-to expected (echo "dune a.txt b.txt c.txt")))))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets result2 expected2)
|
(targets result2 expected2)
|
||||||
(deps (source_tree sub-tree))
|
(deps (source_tree sub-tree))
|
||||||
(action (progn
|
(action (progn
|
||||||
(with-stdout-to result2 (echo ${^}))
|
(with-stdout-to result2 (echo %{^}))
|
||||||
(with-stdout-to expected2 (echo "sub-tree/a sub-tree/dir/b")))))
|
(with-stdout-to expected2 (echo "sub-tree/a sub-tree/dir/b")))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
|
@ -31,21 +31,21 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps dune dune-plop)
|
(deps dune dune-plop)
|
||||||
(action (run diff -u ${^})))
|
(action (run diff -u %{^})))
|
||||||
|
|
||||||
;; For some tests in subdirs
|
;; For some tests in subdirs
|
||||||
|
|
||||||
(rule (with-stdout-to 023e1a58-4d08-11e7-a041-aa000008c8a6 (echo "plop")))
|
(rule (with-stdout-to 023e1a58-4d08-11e7-a041-aa000008c8a6 (echo "plop")))
|
||||||
|
|
||||||
;; Test for ${path-no-dep}
|
;; Test for %{path-no-dep}
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(progn
|
(progn
|
||||||
(with-stdout-to pnd-result
|
(with-stdout-to pnd-result
|
||||||
(chdir sub-tree/dir
|
(chdir sub-tree/dir
|
||||||
(progn
|
(progn
|
||||||
(echo "${path-no-dep:file-that-doesn't-exist}\n")
|
(echo "%{path-no-dep:file-that-doesn't-exist}\n")
|
||||||
(echo "${path-no-dep:.}\n"))))
|
(echo "%{path-no-dep:.}\n"))))
|
||||||
(with-stdout-to pnd-expected
|
(with-stdout-to pnd-expected
|
||||||
(progn
|
(progn
|
||||||
(echo "../../file-that-doesn't-exist\n")
|
(echo "../../file-that-doesn't-exist\n")
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps pnd-result pnd-expected)
|
(deps pnd-result pnd-expected)
|
||||||
(action (run diff -u ${^})))
|
(action (run diff -u %{^})))
|
||||||
|
|
||||||
;; Test for globs
|
;; Test for globs
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(action (with-stdout-to ${null} (echo "hello world"))))
|
(action (with-stdout-to %{null} (echo "hello world"))))
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps _doc/_html/index.html)
|
(deps _doc/_html/index.html)
|
||||||
(action (echo "${read:_doc/_html/index.html}")))
|
(action (echo "%{read:_doc/_html/index.html}")))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name foo-mld)
|
(name foo-mld)
|
||||||
(deps _doc/_mlds/foo/index.mld)
|
(deps _doc/_mlds/foo/index.mld)
|
||||||
(action (echo "${read:_doc/_mlds/foo/index.mld}")))
|
(action (echo "%{read:_doc/_mlds/foo/index.mld}")))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name bar-mld)
|
(name bar-mld)
|
||||||
(deps _doc/_mlds/bar/index.mld)
|
(deps _doc/_mlds/bar/index.mld)
|
||||||
(action (echo "${read:_doc/_mlds/bar/index.mld}")))
|
(action (echo "%{read:_doc/_mlds/bar/index.mld}")))
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
(name all)
|
(name all)
|
||||||
(deps test.bc
|
(deps test.bc
|
||||||
test.exe
|
test.exe
|
||||||
test.bc${ext_obj}
|
test.bc%{ext_obj}
|
||||||
test.exe${ext_obj}
|
test.exe%{ext_obj}
|
||||||
test.bc${ext_dll}
|
test.bc%{ext_dll}
|
||||||
test${ext_dll}
|
test%{ext_dll}
|
||||||
static.bc
|
static.bc
|
||||||
static.exe))
|
static.exe))
|
||||||
|
|
||||||
|
@ -20,20 +20,20 @@
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets static.exe)
|
(targets static.exe)
|
||||||
(deps test.exe${ext_obj} static.c)
|
(deps test.exe%{ext_obj} static.c)
|
||||||
(action (run ${CC} -o ${@} -I ${ocaml_where} -I . ${^}
|
(action (run %{CC} -o %{@} -I %{ocaml_where} -I . %{^}
|
||||||
${ocaml-config:native_c_libraries})))
|
%{ocaml-config:native_c_libraries})))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets static.bc)
|
(targets static.bc)
|
||||||
(deps test.bc${ext_obj} static.c)
|
(deps test.bc%{ext_obj} static.c)
|
||||||
(action (run ${CC} -o ${@} -I ${ocaml_where} -I . ${^}
|
(action (run %{CC} -o %{@} -I %{ocaml_where} -I . %{^}
|
||||||
${ocaml-config:bytecomp_c_libraries})))
|
%{ocaml-config:bytecomp_c_libraries})))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets dynamic.exe)
|
(targets dynamic.exe)
|
||||||
(deps dynamic.c)
|
(deps dynamic.c)
|
||||||
(action (run ${CC} -o ${@} ${<} ${ocaml-config:native_c_libraries})))
|
(action (run %{CC} -o %{@} %{<} %{ocaml-config:native_c_libraries})))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
|
@ -47,10 +47,10 @@
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps test.bc${ext_dll})
|
(deps test.bc%{ext_dll})
|
||||||
(action (run ./dynamic.exe ./${<})))
|
(action (run ./dynamic.exe ./%{<})))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps test${ext_dll})
|
(deps test%{ext_dll})
|
||||||
(action (run ./dynamic.exe ./${<})))
|
(action (run ./dynamic.exe ./%{<})))
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
(rule
|
(rule
|
||||||
(targets x y)
|
(targets x y)
|
||||||
(action (with-stdout-to ${@} (echo foo))))
|
(action (with-stdout-to %{@} (echo foo))))
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name unquoted)
|
(name unquoted)
|
||||||
(action (echo ${read:foo bar.txt})))
|
(action (echo %{read:foo bar.txt})))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name quoted)
|
(name quoted)
|
||||||
(action (echo "${read:foo bar.txt}")))
|
(action (echo "%{read:foo bar.txt}")))
|
|
@ -1,3 +1,3 @@
|
||||||
(rule
|
(rule
|
||||||
(targets s t)
|
(targets s t)
|
||||||
(action (with-stdout-to "${@}" (echo foo))))
|
(action (with-stdout-to "%{@}" (echo foo))))
|
|
@ -3,4 +3,4 @@
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(action (run ./count_args.exe ${read-lines:args})))
|
(action (run ./count_args.exe %{read-lines:args})))
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(action (echo "lines: ${read-lines:foo}")))
|
(action (echo "lines: %{read-lines:foo}")))
|
|
@ -3,8 +3,8 @@ that ${@} is not quoted and doesn't contain exactly 1 element
|
||||||
|
|
||||||
$ dune build --root bad x
|
$ dune build --root bad x
|
||||||
Entering directory 'bad'
|
Entering directory 'bad'
|
||||||
File "dune", line 3, characters 25-29:
|
File "dune", line 3, characters 27-29:
|
||||||
Error: Variable ${@} expands to 2 values, however a single value is expected here. Please quote this atom.
|
Error: Variable %{@} expands to 2 values, however a single value is expected here. Please quote this atom.
|
||||||
[1]
|
[1]
|
||||||
|
|
||||||
The targets should only be interpreted as a single path when quoted
|
The targets should only be interpreted as a single path when quoted
|
||||||
|
@ -26,9 +26,11 @@ The targets should only be interpreted as a single path when quoted
|
||||||
lines: foo bar baz
|
lines: foo bar baz
|
||||||
|
|
||||||
$ dune build @quoted --root filename-space
|
$ dune build @quoted --root filename-space
|
||||||
Entering directory 'filename-space'
|
File "dune", line 4, characters 17-18:
|
||||||
filename contains spaces
|
Error: This character not allowed inside %{...} forms
|
||||||
|
[1]
|
||||||
|
|
||||||
$ dune build @unquoted --root filename-space
|
$ dune build @unquoted --root filename-space
|
||||||
Entering directory 'filename-space'
|
File "dune", line 4, characters 17-18:
|
||||||
${read:foo bar.txt}
|
Error: This character not allowed inside %{...} forms
|
||||||
|
[1]
|
||||||
|
|
|
@ -8,27 +8,27 @@
|
||||||
(lint
|
(lint
|
||||||
(per_module
|
(per_module
|
||||||
((pps (reasonppx (-lint true))) (hello cppome))
|
((pps (reasonppx (-lint true))) (hello cppome))
|
||||||
((action (run ./pp/reasononlypp.exe -lint ${<})) (foo bar pped))))
|
((action (run ./pp/reasononlypp.exe -lint %{<})) (foo bar pped))))
|
||||||
(preprocess
|
(preprocess
|
||||||
(per_module
|
(per_module
|
||||||
((pps (reasonppx)) (foo))
|
((pps (reasonppx)) (foo))
|
||||||
((pps (reasonppx (-lint false))) (hello))
|
((pps (reasonppx (-lint false))) (hello))
|
||||||
((action (run ./pp/reasononlypp.exe ${<})) (cppome))))))
|
((action (run ./pp/reasononlypp.exe %{<})) (cppome))))))
|
||||||
|
|
||||||
(executable
|
(executable
|
||||||
((name rbin)
|
((name rbin)
|
||||||
(modules (rbin))
|
(modules (rbin))
|
||||||
(lint (action (run ./pp/reasononlypp.exe -lint ${<})))
|
(lint (action (run ./pp/reasononlypp.exe -lint %{<})))
|
||||||
(preprocess (action (run ./pp/reasononlypp.exe ${<})))
|
(preprocess (action (run ./pp/reasononlypp.exe %{<})))
|
||||||
(libraries (rlib))))
|
(libraries (rlib))))
|
||||||
|
|
||||||
;; we want to make sure that .rei files are present
|
;; we want to make sure that .rei files are present
|
||||||
(alias
|
(alias
|
||||||
((name install-file)
|
((name install-file)
|
||||||
(deps (rlib.install))
|
(deps (rlib.install))
|
||||||
(action (echo "${read:rlib.install}"))))
|
(action (echo "%{read:rlib.install}"))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
((name runtest)
|
((name runtest)
|
||||||
(deps (rbin.exe))
|
(deps (rbin.exe))
|
||||||
(action (run ${<}))))
|
(action (run %{<}))))
|
||||||
|
|
|
@ -15,15 +15,15 @@
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets stdout.expected)
|
(targets stdout.expected)
|
||||||
(action (with-stdout-to ${@} (echo "toto\n"))))
|
(action (with-stdout-to %{@} (echo "toto\n"))))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets stderr.expected)
|
(targets stderr.expected)
|
||||||
(action (with-stdout-to ${@} (echo "titi\n"))))
|
(action (with-stdout-to %{@} (echo "titi\n"))))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets both.expected)
|
(targets both.expected)
|
||||||
(action (with-stdout-to ${@} (echo "toto\ntiti\n"))))
|
(action (with-stdout-to %{@} (echo "toto\ntiti\n"))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps main.exe)
|
(deps main.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
40
test/dune
40
test/dune
|
@ -51,27 +51,27 @@ Printf.fprintf (open_out Sys.argv.(2)) \"%g\n%!\" (Sys.time ())
|
||||||
|
|
||||||
(executable (name incr) (libraries unix))
|
(executable (name incr) (libraries unix))
|
||||||
|
|
||||||
(rule (targets 01.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 01.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 02.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 02.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 03.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 03.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 04.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 04.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 05.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 05.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 06.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 06.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 07.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 07.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 08.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 08.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 09.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 09.foo) (action (run ./incr.exe x %{@})))
|
||||||
(rule (targets 10.foo) (action (run ./incr.exe x ${@})))
|
(rule (targets 10.foo) (action (run ./incr.exe x %{@})))
|
||||||
|
|
||||||
(rule (targets 01.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 01.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 02.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 02.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 03.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 03.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 04.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 04.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 05.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 05.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 06.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 06.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 07.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 07.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 08.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 08.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 09.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 09.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
(rule (targets 10.bar) (action (run ./incr.exe y ${@})) (locks m))
|
(rule (targets 10.bar) (action (run ./incr.exe y %{@})) (locks m))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest-no-deps)
|
(name runtest-no-deps)
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps ./test_configurator.exe)
|
(deps ./test_configurator.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
|
@ -19,71 +19,71 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps tests.mlt
|
(deps tests.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi)
|
||||||
(source_tree toolchain.d)
|
(source_tree toolchain.d)
|
||||||
(source_tree findlib-db))
|
(source_tree findlib-db))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps filename.mlt
|
(deps filename.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps import_dot_map.mlt
|
(deps import_dot_map.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps action.mlt
|
(deps action.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps path.mlt
|
(deps path.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps sexp.mlt
|
(deps sexp.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps jbuild.mlt
|
(deps jbuild.mlt
|
||||||
(glob_files ${SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
(glob_files %{SCOPE_ROOT}/src/.dune.objs/*.cmi)
|
||||||
(glob_files ${SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
(glob_files %{SCOPE_ROOT}/src/stdune/.stdune.objs/*.cmi))
|
||||||
(action (chdir ${SCOPE_ROOT}
|
(action (chdir %{SCOPE_ROOT}
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:expect_test.exe} ${<})
|
(run %{exe:expect_test.exe} %{<})
|
||||||
(diff? ${<} ${<}.corrected)))))
|
(diff? %{<} %{<}.corrected)))))
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
(alias
|
(alias
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps ./gh637.exe)
|
(deps ./gh637.exe)
|
||||||
(action (run ${<})))
|
(action (run %{<})))
|
||||||
|
|
Loading…
Reference in New Issue