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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
(rule
(deps
enable_outside_detected_project/dune-project
enable_outside_detected_project/main.ml
.ocamlformat)
(package ocamlformat)
(action
(with-stdout-to
enable_outside_detected_project.output
(chdir
enable_outside_detected_project
(run ocamlformat --enable-outside-detected-project main.ml)))))
(rule
(alias runtest)
(package ocamlformat)
(action
(diff
enable_outside_detected_project.expected
enable_outside_detected_project.output)))
(rule
(deps
outside_detected_project/dune-project
outside_detected_project/main.ml)
(package ocamlformat)
(enabled_if
(<> %{os_type} Win32))
(action
(with-outputs-to
outside_detected_project.output
(chdir
outside_detected_project
(run ocamlformat main.ml)))))
(rule
(alias runtest)
(package ocamlformat)
(enabled_if
(<> %{os_type} Win32))
(action
(diff outside_detected_project.expected outside_detected_project.output)))
(rule
(deps
disable_outside_detected_project/dune-project
disable_outside_detected_project/main.ml)
(package ocamlformat)
(enabled_if
(<> %{os_type} Win32))
(action
(with-outputs-to
disable_outside_detected_project.output
(chdir
disable_outside_detected_project
(run ocamlformat --disable-outside-detected-project main.ml)))))
(rule
(alias runtest)
(package ocamlformat)
(enabled_if
(<> %{os_type} Win32))
(action
(diff
disable_outside_detected_project.expected
disable_outside_detected_project.output)))
(rule
(deps
(source_tree outside_detected_project_with_name))
(package ocamlformat)
(action
(with-outputs-to
outside_detected_project_with_name.output
(chdir
outside_detected_project_with_name/project_root
(run ocamlformat --name a.ml ../outside_root/a.ml)))))
(rule
(alias runtest)
(package ocamlformat)
(action
(diff
outside_detected_project_with_name.expected
outside_detected_project_with_name.output)))
|