diff --git a/test/blackbox-tests/test-cases/promote/deep-subdir.t/run.t b/test/blackbox-tests/test-cases/promote/deep-subdir.t similarity index 55% rename from test/blackbox-tests/test-cases/promote/deep-subdir.t/run.t rename to test/blackbox-tests/test-cases/promote/deep-subdir.t index 865d375bf62..7dc3d1bd6e7 100644 --- a/test/blackbox-tests/test-cases/promote/deep-subdir.t/run.t +++ b/test/blackbox-tests/test-cases/promote/deep-subdir.t @@ -1,6 +1,22 @@ Tests for promoting directory targets ------------------------------------- + $ cat > dune-project << EOF + > (lang dune 3.0) + > (using directory-targets 0.1) + > EOF + + $ cat > dune << EOF + > (rule + > (deps + > (source_tree deep)) + > (targets + > (dir deep_copied)) + > (mode promote) + > (action + > (run cp -r deep deep_copied))) + > EOF + Let's create the directory structure we are going to promote (as a copy on another dir): @@ -19,7 +35,25 @@ This one works. Now, let's add a layer between base_file and deep_file: $ touch deep/a/b/deep_file $ touch deep/base_file - $ dune build deep_copied + $ dune build deep_copied --verbose + Shared cache: enabled-except-user-rules + Shared cache location: /home/panglesd/.cache/dune/db + Workspace root: + $TESTCASE_ROOT + Dune context: + { name = "default" + ; kind = "default" + ; profile = Dev + ; merlin = true + ; fdo_target_exe = None + ; build_dir = In_build_dir "default" + ; instrument_with = [] + } + Actual targets: + - _build/default/deep_copied + Running[1]: (cd _build/default && /usr/bin/cp -r deep deep_copied) + Promoting "_build/default/deep_copied/a/b/deep_file" to + "deep_copied/a/b/deep_file" File "dune", lines 1-7, characters 0-121: 1 | (rule 2 | (deps diff --git a/test/blackbox-tests/test-cases/promote/deep-subdir.t/dune b/test/blackbox-tests/test-cases/promote/deep-subdir.t/dune deleted file mode 100644 index 5c6c31d2bf9..00000000000 --- a/test/blackbox-tests/test-cases/promote/deep-subdir.t/dune +++ /dev/null @@ -1,7 +0,0 @@ -(rule - (deps - (source_tree deep)) - (targets (dir deep_copied)) - (mode promote) - (action - (run cp -r deep deep_copied))) diff --git a/test/blackbox-tests/test-cases/promote/deep-subdir.t/dune-project b/test/blackbox-tests/test-cases/promote/deep-subdir.t/dune-project deleted file mode 100644 index 1c9c06b09e2..00000000000 --- a/test/blackbox-tests/test-cases/promote/deep-subdir.t/dune-project +++ /dev/null @@ -1,3 +0,0 @@ -(lang dune 3.0) - -(using directory-targets 0.1)