This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
4
unikernel/duniverse/pgx/pgx_async/test/dune
Normal file
4
unikernel/duniverse/pgx/pgx_async/test/dune
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(tests
|
||||
(names test_pgx_async)
|
||||
(package pgx_async)
|
||||
(libraries alcotest alcotest-async pgx_async pgx_test))
|
||||
13
unikernel/duniverse/pgx/pgx_async/test/test_pgx_async.ml
Normal file
13
unikernel/duniverse/pgx/pgx_async/test/test_pgx_async.ml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
module Alcotest_io = struct
|
||||
type 'a test_case = 'a Alcotest_async.test_case
|
||||
|
||||
let test_case name speed f = Alcotest_async.test_case name speed f
|
||||
|
||||
let run name tests =
|
||||
Async_unix.Thread_safe.block_on_async_exn @@ fun () -> Alcotest_async.run name tests
|
||||
;;
|
||||
end
|
||||
|
||||
include Pgx_test.Make_tests (Pgx_async) (Alcotest_io)
|
||||
|
||||
let () = run_tests ~library_name:"pgx_async"
|
||||
Loading…
Add table
Add a link
Reference in a new issue