-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parallel inline_tests: Improve tests
The fake inline_tests backend was not taking libname into account when listing partitions. Which could result in listing too many partitions. Signed-off-by: Hugo Heuzard <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
test/blackbox-tests/test-cases/inline_tests/parallel.t/test2/test_lib2.ml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p1" "first test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p1" "first test" | ||
(fun () -> assert true) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p1" "second test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p1" "second test" | ||
(fun () -> () ) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p2" "first test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p2" "first test" | ||
(fun () -> ()) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p3" "first test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p3" "first test" | ||
(fun () -> failwith "This failure is expected") | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"other_lib" ~partition:"p1" | ||
"second test" (fun () -> assert false) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"other_lib" ~partition:"pn" | ||
"second test" (fun () -> assert false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
let () = | ||
Fake_backend_runner.register ~libname:"other_lib" ~partition:"p1" | ||
"second test" (fun () -> assert false) |