disable cbor tests on < 4.08

This commit is contained in:
Simon Cruanes 2022-06-28 23:37:33 -04:00
parent 565b3ed5c2
commit fd4c679479
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,6 @@
(executable (executable
(name t_appendix_a) (name t_appendix_a)
(preprocess (action (run %{project_root}/src/core/cpp/cpp.exe %{input-file})))
(libraries yojson containers containers.cbor)) (libraries yojson containers containers.cbor))
(rule (rule

View file

@ -1,3 +1,6 @@
[@@@ifge 4.08]
module J = Yojson.Safe module J = Yojson.Safe
module Fmt = CCFormat module Fmt = CCFormat
module Cbor = Containers_cbor module Cbor = Containers_cbor
@ -162,3 +165,6 @@ let () =
(*Format.printf "tests: %a@." (Fmt.Dump.list Test.pp) tests;*) (*Format.printf "tests: %a@." (Fmt.Dump.list Test.pp) tests;*)
run_tests tests; run_tests tests;
() ()
[@@@endif]