Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to dune.3.8 to allow dune to run test partitions concurrently #40

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(lang dune 1.11)
(lang dune 3.8)
2 changes: 1 addition & 1 deletion ppx_inline_test.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ depends: [
"ocaml" {>= "4.14.0"}
"base"
"time_now"
"dune" {>= "2.0.0"}
"dune" {>= "3.8.0"}
"ppxlib" {>= "0.28.0"}
]
available: arch != "arm32" & arch != "x86_32"
Expand Down
6 changes: 5 additions & 1 deletion runner/lib/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
(library (name ppx_inline_test_runner_lib)
(public_name ppx_inline_test.runner.lib)
(js_of_ocaml (flags --no-sourcemap) (javascript_files runtime.js))
(c_names am_testing) (libraries base) (preprocess no_preprocessing))
(foreign_stubs
(language c)
(names am_testing))
(libraries base)
(preprocess no_preprocessing))
3 changes: 2 additions & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
(preprocess (pps ppxlib.metaquot))
(inline_tests.backend (runner_libraries ppx_inline_test.runner.lib)
(generate_runner (echo "let () = Ppx_inline_test_lib.exit ();;"))
(flags "inline-test-runner" %{library-name} -source-tree-root
(list_partitions_flags "inline-test-runner" %{library-name} -list-partitions)
(flags "inline-test-runner" %{library-name} -partition %{partition} -source-tree-root
%{workspace_root} -diff-cmd -)))
2 changes: 1 addition & 1 deletion test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
\n"))
(mode fallback))

(alias (name runtest)
(rule (alias runtest)
(deps test.expected test.output test-inlining.expected test-inlining.output)
(action
(bash
Expand Down