From e572dbf12ed94f9023d8846b1fa4c9f9709f68dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulysse=20G=C3=A9rard?= Date: Thu, 4 Jul 2024 14:42:27 +0200 Subject: [PATCH] Move package specific tests --- {tests/test-dirs/ocaml-index => src/ocaml-index/tests}/dune | 1 + .../ocaml-index => src/ocaml-index/tests/tests-dirs}/cmd.t | 0 .../ocaml-index => src/ocaml-index/tests/tests-dirs}/flags.t | 0 .../ocaml-index/tests/tests-dirs}/index-project.t | 0 .../ocaml-index/tests/tests-dirs}/interfaces.t | 0 .../ocaml-index/tests/tests-dirs}/local-shape-and-include.t | 0 .../ocaml-index/tests/tests-dirs}/transitive-deps.t | 0 tests/test-dirs/occurrences/project-wide/dune | 3 +-- 8 files changed, 2 insertions(+), 2 deletions(-) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests}/dune (86%) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests/tests-dirs}/cmd.t (100%) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests/tests-dirs}/flags.t (100%) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests/tests-dirs}/index-project.t (100%) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests/tests-dirs}/interfaces.t (100%) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests/tests-dirs}/local-shape-and-include.t (100%) rename {tests/test-dirs/ocaml-index => src/ocaml-index/tests/tests-dirs}/transitive-deps.t (100%) diff --git a/tests/test-dirs/ocaml-index/dune b/src/ocaml-index/tests/dune similarity index 86% rename from tests/test-dirs/ocaml-index/dune rename to src/ocaml-index/tests/dune index 6e136ff7f..e304a31f6 100644 --- a/tests/test-dirs/ocaml-index/dune +++ b/src/ocaml-index/tests/dune @@ -4,6 +4,7 @@ (package ocaml-index))) (cram + (package ocaml-index) (applies_to :whole_subtree) (deps (alias ocaml-index-test-deps))) diff --git a/tests/test-dirs/ocaml-index/cmd.t b/src/ocaml-index/tests/tests-dirs/cmd.t similarity index 100% rename from tests/test-dirs/ocaml-index/cmd.t rename to src/ocaml-index/tests/tests-dirs/cmd.t diff --git a/tests/test-dirs/ocaml-index/flags.t b/src/ocaml-index/tests/tests-dirs/flags.t similarity index 100% rename from tests/test-dirs/ocaml-index/flags.t rename to src/ocaml-index/tests/tests-dirs/flags.t diff --git a/tests/test-dirs/ocaml-index/index-project.t b/src/ocaml-index/tests/tests-dirs/index-project.t similarity index 100% rename from tests/test-dirs/ocaml-index/index-project.t rename to src/ocaml-index/tests/tests-dirs/index-project.t diff --git a/tests/test-dirs/ocaml-index/interfaces.t b/src/ocaml-index/tests/tests-dirs/interfaces.t similarity index 100% rename from tests/test-dirs/ocaml-index/interfaces.t rename to src/ocaml-index/tests/tests-dirs/interfaces.t diff --git a/tests/test-dirs/ocaml-index/local-shape-and-include.t b/src/ocaml-index/tests/tests-dirs/local-shape-and-include.t similarity index 100% rename from tests/test-dirs/ocaml-index/local-shape-and-include.t rename to src/ocaml-index/tests/tests-dirs/local-shape-and-include.t diff --git a/tests/test-dirs/ocaml-index/transitive-deps.t b/src/ocaml-index/tests/tests-dirs/transitive-deps.t similarity index 100% rename from tests/test-dirs/ocaml-index/transitive-deps.t rename to src/ocaml-index/tests/tests-dirs/transitive-deps.t diff --git a/tests/test-dirs/occurrences/project-wide/dune b/tests/test-dirs/occurrences/project-wide/dune index f0d4d3232..9b429078a 100644 --- a/tests/test-dirs/occurrences/project-wide/dune +++ b/tests/test-dirs/occurrences/project-wide/dune @@ -1,12 +1,11 @@ (cram - (package ocaml-index) (applies_to :whole_subtree) (deps %{bin:ocaml-index})) (cram (applies_to pwo-ml-gen) - (enabled_if (and %{bin-available:ocaml-index} (>= %{read:version/dune.txt} "3.16")))) + (enabled_if (>= %{read:version/dune.txt} "3.16"))) (subdir version