Skip to content

Commit a5a878c

Browse files
committed
Use the custom runner for the test suite
Unfortunately, syntax such as `%{dep:%{test}}` is not understood in an action, and simply using: `(action (run runner %{test}))` does not add the test executable to the dependencies of the action, so dune does not build it We keep the standard runner for the _internal_ tests, as the custom runner would bring no benefit there
1 parent 8964281 commit a5a878c

File tree

20 files changed

+62
-53
lines changed

20 files changed

+62
-53
lines changed

src/array/dune

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
(action (run %{test} --verbose))
9+
(action (run runner %{dep:stm_tests.exe}))
1010
)
1111

1212
(test
@@ -16,7 +16,7 @@
1616
(flags (:standard -w -27))
1717
(libraries qcheck-lin.domain)
1818
(preprocess (pps ppx_deriving_qcheck ppx_deriving.show ppx_deriving.eq))
19-
; (action (run %{test} --verbose))
19+
; (action (run runner %{dep:lin_tests.exe}))
2020
(action (echo "Skipping src/array/%{test} from the test suite\n\n"))
2121
)
2222

@@ -25,5 +25,5 @@
2525
(modules lin_tests_dsl)
2626
(package multicoretests)
2727
(libraries qcheck-lin.domain)
28-
(action (run %{test} --verbose))
28+
(action (run runner %{dep:lin_tests_dsl.exe}))
2929
)

src/atomic/dune

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
(package multicoretests)
99
(libraries qcheck-stm.sequential qcheck-stm.domain)
1010
(preprocess (pps ppx_deriving.show))
11-
(action (run %{test} --verbose))
11+
(action (run runner %{dep:stm_tests.exe}))
1212
)
1313

1414
;; Linearization tests of Atomic, utilizing ppx_deriving_qcheck
@@ -20,7 +20,7 @@
2020
(flags (:standard -w -27))
2121
(libraries qcheck-lin.domain)
2222
(preprocess (pps ppx_deriving_qcheck ppx_deriving.show ppx_deriving.eq))
23-
; (action (run %{test} --verbose))
23+
; (action (run runner %{dep:lin_tests.exe}))
2424
(action (echo "Skipping src/atomic/%{test} from the test suite\n\n"))
2525
)
2626

@@ -29,5 +29,5 @@
2929
(modules lin_tests_dsl)
3030
(package multicoretests)
3131
(libraries qcheck-lin.domain)
32-
(action (run %{test} --verbose))
32+
(action (run runner %{dep:lin_tests_dsl.exe}))
3333
)

src/bigarray/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
; (action (run %{test} --verbose))
9+
; (action (run runner %{dep:stm_tests.exe}))
1010
(action (echo "Skipping src/bigarray/%{test} from the test suite\n\n"))
1111
)
1212

@@ -15,5 +15,5 @@
1515
(modules lin_tests_dsl)
1616
(package multicoretests)
1717
(libraries qcheck-lin.domain)
18-
(action (run %{test} --verbose))
18+
(action (run runner %{dep:lin_tests_dsl.exe}))
1919
)

src/buffer/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
(action (run %{test} --verbose))
9+
(action (run runner %{dep:stm_tests.exe}))
1010
)

src/bytes/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
(action (run %{test} --verbose))
9+
(action (run runner %{dep:stm_tests.exe}))
1010
)
1111

1212
(test
1313
(name lin_tests_dsl)
1414
(modules lin_tests_dsl)
1515
(package multicoretests)
1616
(libraries qcheck-lin.domain qcheck-lin.thread)
17-
(action (run %{test} --verbose))
17+
(action (run runner %{dep:lin_tests_dsl.exe}))
1818
)

src/domain/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
(package multicoretests)
99
(libraries util qcheck-core qcheck-core.runner)
1010
(preprocess (pps ppx_deriving.show))
11-
(action (run %{test} --verbose))
11+
(action (run runner %{dep:domain_joingraph.exe}))
1212
)
1313

1414
(test
@@ -17,5 +17,5 @@
1717
(package multicoretests)
1818
(libraries util qcheck-core qcheck-core.runner)
1919
(preprocess (pps ppx_deriving.show))
20-
(action (run %{test} --verbose))
20+
(action (run runner %{dep:domain_spawntree.exe}))
2121
)

src/dynlink/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
(modules lin_tests_dsl)
1616
(package multicoretests)
1717
(libraries qcheck-lin.domain dynlink libA libB)
18-
(action (run %{test} --verbose))
18+
(action (run runner %{dep:lin_tests_dsl.exe}))
1919
)

src/ephemeron/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
(action (run %{test} --verbose))
9+
(action (run runner %{dep:stm_tests.exe}))
1010
)
1111

1212
(test
1313
(name lin_tests_dsl)
1414
(modules lin_tests_dsl)
1515
(package multicoretests)
1616
(libraries qcheck-lin.domain qcheck-lin.thread)
17-
(action (run %{test} --verbose))
17+
(action (run runner %{dep:lin_tests_dsl.exe}))
1818
)

src/floatarray/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
(action (run %{test} --verbose))
9+
(action (run runner %{dep:stm_tests.exe}))
1010
)
1111

1212
(test
1313
(name lin_tests_dsl)
1414
(modules lin_tests_dsl)
1515
(package multicoretests)
1616
(libraries qcheck-lin.domain)
17-
(action (run %{test} --verbose))
17+
(action (run runner %{dep:lin_tests_dsl.exe}))
1818
)

src/hashtbl/dune

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(package multicoretests)
77
(libraries qcheck-stm.sequential qcheck-stm.domain)
88
(preprocess (pps ppx_deriving.show))
9-
(action (run %{test} --verbose))
9+
(action (run runner %{dep:stm_tests.exe}))
1010
)
1111

1212
(test
@@ -16,7 +16,7 @@
1616
(flags (:standard -w -27))
1717
(libraries qcheck-lin.domain)
1818
(preprocess (pps ppx_deriving_qcheck ppx_deriving.show ppx_deriving.eq))
19-
; (action (run %{test} --verbose))
19+
; (action (run runner %{dep:lin_tests.exe}))
2020
(action (echo "Skipping src/hashtbl/%{test} from the test suite\n\n"))
2121
)
2222

@@ -25,5 +25,5 @@
2525
(modules lin_tests_dsl)
2626
(package multicoretests)
2727
(libraries qcheck-lin.domain)
28-
(action (run %{test} --verbose))
28+
(action (run runner %{dep:lin_tests_dsl.exe}))
2929
)

0 commit comments

Comments
 (0)