File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 if : startsWith(matrix.ocaml-compiler, '5')
6565 run : |
6666 opam_files="./ppx_protocol_conv.opam"
67+ dune_packages="${{ matrix.package }}"
6768 if [ "${{ matrix.package }}" != "ppx_protocol_conv" ]; then
6869 opam_files="$opam_files ./${{ matrix.package }}.opam"
70+ dune_packages="ppx_protocol_conv,${{ matrix.package }}"
6971 fi
7072 opam install $opam_files --deps-only --with-test
71- opam exec -- dune runtest -p ${{ matrix.package }}
73+ opam exec -- dune runtest -p "$dune_packages"
Original file line number Diff line number Diff line change 11(library
22 (name protocol_conv_json)
33 (public_name ppx_protocol_conv_json)
4- (private_modules test_expect)
4+ (modules (:standard \ test_expect) )
55 (libraries ppx_protocol_conv.runtime ppx_protocol_conv.driver yojson)
66 (synopsis "yojson (de)serialization driver for ppx_protocol_conv")
7+ (preprocess (pps ppx_protocol_conv))
8+ )
9+
10+ (library
11+ (name protocol_conv_json_inline_tests)
12+ (modules test_expect)
13+ (libraries ppx_protocol_conv_json ppx_protocol_conv.driver)
714 (preprocess (pps ppx_protocol_conv ppx_expect))
15+ (inline_tests)
816)
Original file line number Diff line number Diff line change 11module Default_parameters = Ppx_protocol_driver. Default_parameters
2- module Make = Json. Make
2+ module Make = Protocol_conv_json. Json.Make
33
44(* * Test parameters. *)
55module Test = struct
Original file line number Diff line number Diff line change 3131 ( ocaml ( >= 4 .08) )
3232 ( ppx_protocol_conv ( = :version ) )
3333 ( yojson ( >= 1 .6.0) )
34- ppx_expect
35- ppx_inline_test
34+ ( ppx_expect :with -test)
3635 ( ppx_sexp_conv :with -test)
3736 ( sexplib :with -test)
3837 ( alcotest :with -test) ) )
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ depends: [
1313 "ocaml" {>= "4.08"}
1414 "ppx_protocol_conv" {= version}
1515 "yojson" {>= "1.6.0"}
16- "ppx_expect"
17- "ppx_inline_test"
16+ "ppx_expect" {with-test}
1817 "ppx_sexp_conv" {with-test}
1918 "sexplib" {with-test}
2019 "alcotest" {with-test}
You can’t perform that action at this time.
0 commit comments