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
16(rule
17 (alias yaml-test-suite)
18 (deps
19 (source_tree yaml-test-suite))
20 (targets yaml-test-results.html)
21 (action
22 (run
23 %{exe:run_all_tests.exe}
24 --test-suite-path
25 %{workspace_root}/tests/yaml-test-suite
26 --html
27 yaml-test-results.html)))
28
29(rule
30 (alias yaml-test-suite-eio)
31 (deps
32 (source_tree yaml-test-suite))
33 (targets yaml-test-results-eio.html)
34 (action
35 (run
36 %{exe:run_all_tests_eio.exe}
37 --test-suite-path
38 %{workspace_root}/tests/yaml-test-suite
39 --html
40 yaml-test-results-eio.html)))