ocaml-containers/examples/dune
Simon Cruanes 10865eaced reformat
2022-07-04 13:36:06 -04:00

49 lines
943 B
Text

(executables
(names id_sexp ccparse_sexp ccparse_irclogs)
(libraries containers)
(flags :standard -warn-error -a+8))
(rule
(alias runtest)
(locks /ctest)
(deps
(source_tree test_data))
(action
(ignore-stdout
(run ./id_sexp.exe test_data/benchpress.sexp))))
(rule
(alias runtest)
(locks /ctest)
(deps
(source_tree test_data))
(action
(ignore-stdout
(run ./ccparse_sexp.exe test_data/benchpress.sexp))))
(rule
(targets ccparse_irclogs.ml)
(enabled_if
(>= %{ocaml_version} "4.08"))
(action
(copy ccparse_irclogs_real.cond.ml %{targets})))
(rule
(targets ccparse_irclogs.ml)
(enabled_if
(< %{ocaml_version} "4.08"))
(action
(with-stdout-to
%{targets}
(run echo "let() = print_endline {|ok|}"))))
(rule
(alias runtest)
(locks /ctest)
(deps
(source_tree test_data))
(enabled_if
(>= %{ocaml_version} "4.08"))
(action
(ignore-stdout
(run ./ccparse_irclogs.exe test_data/irc-logs.txt))))