Skip to content
Snippets Groups Projects
Commit 41e2b04d authored by hondet's avatar hondet
Browse files

formatting

parent 395c7d08
No related branches found
No related tags found
No related merge requests found
...@@ -28,5 +28,7 @@ jobs: ...@@ -28,5 +28,7 @@ jobs:
run: | run: |
cd proofs/psnj_toolbox || exit 1 cd proofs/psnj_toolbox || exit 1
opam install . --deps-only --yes opam install . --deps-only --yes
opam install ocamlformat
opam exec -- dune build @fmt
opam exec -- dune build opam exec -- dune build
opam exec -- dune test opam exec -- dune test
...@@ -13,7 +13,7 @@ let cmds = ...@@ -13,7 +13,7 @@ let cmds =
Autosolve.cmd; Autosolve.cmd;
Qfo.cmd; Qfo.cmd;
Group.cmd; Group.cmd;
Pipe.cmd Pipe.cmd;
] ]
let () = Term.(exit @@ eval_choice default_cmd cmds) let () = Term.(exit @@ eval_choice default_cmd cmds)
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
(glob_files encoding/*) (glob_files encoding/*)
(glob_files spec/main.lp)) (glob_files spec/main.lp))
(libraries unix) (libraries unix)
(action (run ./ex.exe %{bin:psnj}))) (action
(run ./ex.exe %{bin:psnj})))
...@@ -4,8 +4,8 @@ let () = ...@@ -4,8 +4,8 @@ let () =
(Filename.quote_command Sys.argv.(1) (Filename.quote_command Sys.argv.(1)
[ "pipe"; "--qfo"; "encoding/qfo.json"; "ex.log" ]) [ "pipe"; "--qfo"; "encoding/qfo.json"; "ex.log" ])
with with
| Unix.WEXITED 0 -> | Unix.WEXITED 0 ->
ignore @@ Unix.system (Filename.quote_command "cat" ["exi.lp"]) ignore @@ Unix.system (Filename.quote_command "cat" [ "exi.lp" ])
| Unix.WEXITED n -> | Unix.WEXITED n ->
Format.eprintf "Command exited with code %d@." n; Format.eprintf "Command exited with code %d@." n;
exit 1 exit 1
......
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
(glob_files encoding/*) (glob_files encoding/*)
(glob_files spec/main.lp)) (glob_files spec/main.lp))
(libraries unix) (libraries unix)
(action (run ./hello.exe %{bin:psnj}))) (action
(run ./hello.exe %{bin:psnj})))
...@@ -5,7 +5,7 @@ let () = ...@@ -5,7 +5,7 @@ let () =
[ "pipe"; "--qfo"; "encoding/qfo.json"; "hello.log" ]) [ "pipe"; "--qfo"; "encoding/qfo.json"; "hello.log" ])
with with
| Unix.WEXITED 0 -> | Unix.WEXITED 0 ->
ignore (Unix.system (Filename.quote_command "cat" ["hello.lp"])) ignore (Unix.system (Filename.quote_command "cat" [ "hello.lp" ]))
| Unix.WEXITED n -> | Unix.WEXITED n ->
Format.eprintf "Command exited with code %d@." n; Format.eprintf "Command exited with code %d@." n;
exit 1 exit 1
......
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
(glob_files encoding/*) (glob_files encoding/*)
(glob_files spec/main.lp)) (glob_files spec/main.lp))
(libraries unix) (libraries unix)
(action (run ./mp.exe %{bin:psnj}))) (action
(run ./mp.exe %{bin:psnj})))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment