restrict moonpool-lwt tests to 5.0

This commit is contained in:
Simon Cruanes 2024-02-20 18:39:27 -05:00
parent f68f27a4a4
commit fa5ae97b6d
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -5,21 +5,25 @@
(rule (rule
(targets output_hash.txt) (targets output_hash.txt)
(deps ./hash_server.exe ./hash_client.exe ./run_hash.sh) (deps ./hash_server.exe ./hash_client.exe ./run_hash.sh)
(enabled_if (>= %{ocaml_version} 5.0))
(action (action
(with-stdout-to %{targets} (with-stdout-to %{targets}
(run ./run_hash.sh -d ../../src --n-conn=2 -j=4 --ext ".ml")))) (run ./run_hash.sh -d ../../src --n-conn=2 -j=4 --ext ".ml"))))
(rule (rule
(alias runtest) (alias runtest)
(enabled_if (>= %{ocaml_version} 5.0))
(action (diff ./output_hash.expected ./output_hash.txt))) (action (diff ./output_hash.expected ./output_hash.txt)))
(rule (rule
(targets output_echo.txt) (targets output_echo.txt)
(deps ./echo_server.exe ./echo_client.exe ./run_echo.sh) (deps ./echo_server.exe ./echo_client.exe ./run_echo.sh)
(enabled_if (>= %{ocaml_version} 5.0))
(action (action
(with-stdout-to %{targets} (with-stdout-to %{targets}
(run ./run_echo.sh -n 10 --n-conn=2 -j=4)))) (run ./run_echo.sh -n 10 --n-conn=2 -j=4))))
(rule (rule
(alias runtest) (alias runtest)
(enabled_if (>= %{ocaml_version} 5.0))
(action (diff ./output_echo.expected ./output_echo.txt))) (action (diff ./output_echo.expected ./output_echo.txt)))