From b27b488027dbc53e3c4f9c1f12c9fce6760666fb Mon Sep 17 00:00:00 2001 From: Corentin Leruth Date: Fri, 27 Jan 2023 22:39:15 +0100 Subject: [PATCH] run test on all ocaml versions Signed-off-by: Corentin Leruth --- .../enabled_if/eif-ocaml_version_lte.t/dune | 20 ++++++++++++++++++ .../eif-ocaml_version_lte.t/dune-project | 1 + .../enabled_if/eif-ocaml_version_lte.t/run.t | 1 + .../enabled_if/eif-ocaml_version_lte/dune | 3 --- .../enabled_if/eif-ocaml_version_lte/run.t | 21 ------------------- 5 files changed, 22 insertions(+), 24 deletions(-) create mode 100644 test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune create mode 100644 test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune-project create mode 100644 test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/run.t delete mode 100644 test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/dune delete mode 100644 test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/run.t diff --git a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune new file mode 100644 index 000000000000..72d30f9dd07d --- /dev/null +++ b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune @@ -0,0 +1,20 @@ +(library + (name lte414caml) + (modules lte414caml) + (enabled_if + (<= %{ocaml_version} %{ocaml_version}))) + +(rule + (with-stdout-to + lte414caml.ml + (echo ""))) + +(rule + (with-stdout-to + main.ml + (echo ""))) + +(executable + (name main) + (modules main) + (libraries lte414caml)) diff --git a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune-project b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune-project new file mode 100644 index 000000000000..37f995d64929 --- /dev/null +++ b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/dune-project @@ -0,0 +1 @@ +(lang dune 3.0) diff --git a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/run.t b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/run.t new file mode 100644 index 000000000000..4d24f7e36148 --- /dev/null +++ b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte.t/run.t @@ -0,0 +1 @@ + $ dune build diff --git a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/dune b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/dune deleted file mode 100644 index 9483c51081db..000000000000 --- a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/dune +++ /dev/null @@ -1,3 +0,0 @@ -(cram - (enabled_if - (= %{ocaml_version} 4.14.1))) diff --git a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/run.t b/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/run.t deleted file mode 100644 index 6e88e745bea5..000000000000 --- a/test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/run.t +++ /dev/null @@ -1,21 +0,0 @@ - $ cat >dune-project < (lang dune 3.0) - > EOF - - $ cat >dune < (library - > (name lte414caml) - > (modules lte414caml) - > (enabled_if (<= %{ocaml_version} 4.14.1))) - > - > (rule (with-stdout-to lte414caml.ml (echo ""))) - > - > (rule (with-stdout-to main.ml (echo ""))) - > - > (executable - > (name main) - > (modules main) - > (libraries lte414caml)) - > EOF - - $ dune build