1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
(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))))
|