You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
9 years ago
|
(*
|
||
6 years ago
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
9 years ago
|
*
|
||
7 years ago
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
9 years ago
|
*)
|
||
|
|
||
8 years ago
|
open! IStd
|
||
9 years ago
|
|
||
9 years ago
|
(** module for running OCaml unit tests *)
|
||
|
|
||
7 years ago
|
let rec mk_test_fork_proof test =
|
||
|
let open OUnitTest in
|
||
|
match test with
|
||
7 years ago
|
| TestCase (length, f) ->
|
||
|
TestCase (length, Tasks.fork_protect ~f)
|
||
|
| TestList l ->
|
||
|
TestList (List.map ~f:mk_test_fork_proof l)
|
||
|
| TestLabel (label, test) ->
|
||
|
TestLabel (label, mk_test_fork_proof test)
|
||
|
|
||
7 years ago
|
|
||
9 years ago
|
let () =
|
||
7 years ago
|
ResultsDir.create_results_dir () ;
|
||
9 years ago
|
let open OUnit2 in
|
||
7 years ago
|
let tests =
|
||
7 years ago
|
(* OUnit runs tests in parallel using fork(2) *)
|
||
|
List.map ~f:mk_test_fork_proof
|
||
|
( [ AbstractInterpreterTests.tests
|
||
|
; AccessTreeTests.tests
|
||
|
; AddressTakenTests.tests
|
||
5 years ago
|
; CStubsTests.tests
|
||
7 years ago
|
; DifferentialFiltersTests.tests
|
||
6 years ago
|
; DifferentialTests.tests
|
||
7 years ago
|
; FileDiffTests.tests
|
||
5 years ago
|
; GradleTests.tests
|
||
6 years ago
|
; IListTests.tests
|
||
5 years ago
|
; JavaClassNameTests.tests
|
||
7 years ago
|
; JavaProfilerSamplesTest.tests
|
||
6 years ago
|
; LivenessTests.tests
|
||
5 years ago
|
; LRUHashtblTests.tests
|
||
6 years ago
|
; MaximumSharingTests.tests
|
||
7 years ago
|
; ProcCfgTests.tests
|
||
5 years ago
|
; RestartSchedulerTests.tests
|
||
7 years ago
|
; SchedulerTests.tests
|
||
6 years ago
|
; SeverityTests.tests
|
||
7 years ago
|
; TaintTests.tests
|
||
6 years ago
|
; TraceTests.tests
|
||
|
; WeakTopologicalOrderTests.tests ]
|
||
5 years ago
|
@ ClangTests.tests @ AllNullsafeTests.tests )
|
||
7 years ago
|
in
|
||
9 years ago
|
let test_suite = "all" >::: tests in
|
||
|
OUnit2.run_test_tt_main test_suite
|