Pure OCaml Yaml 1.2 reader and writer using Bytesrw
1; Test executables for the full YAML test suite
2
3(executable
4 (name run_all_tests)
5 (modules run_all_tests test_yamlrw)
6 (libraries yamlrw test_suite_lib alcotest))
7
8(executable
9 (name run_all_tests_eio)
10 (modules run_all_tests_eio)
11 (libraries yamlrw test_suite_lib_eio eio_main))
12
13; Alias to run the full YAML test suite and generate HTML report
14; Requires yaml-test-suite to be cloned to tests/yaml-test-suite
15(rule
16 (alias yaml-test-suite)
17 (deps (source_tree yaml-test-suite))
18 (targets yaml-test-results.html)
19 (action
20 (run %{exe:run_all_tests.exe}
21 --test-suite-path %{workspace_root}/tests/yaml-test-suite
22 --html yaml-test-results.html)))
23
24(rule
25 (alias yaml-test-suite-eio)
26 (deps (source_tree yaml-test-suite))
27 (targets yaml-test-results-eio.html)
28 (action
29 (run %{exe:run_all_tests_eio.exe}
30 --test-suite-path %{workspace_root}/tests/yaml-test-suite
31 --html yaml-test-results-eio.html)))