Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/blackbox-tests/setup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,19 @@ write_cross_compilation_repro_project() {
fi
}

make_dune_cache_copy_project() {
make_dune_project 2.1
cat > dune <<-'EOF'
(rule
(deps source)
(targets target)
(action (copy source target)))
EOF
cat > source <<-'EOF'
\_o< COIN
EOF
}

make_two_context_workspace() {
local version="${1:-3.13}"
local name="${2:-alt-context}"
Expand Down
11 changes: 1 addition & 10 deletions test/blackbox-tests/test-cases/dune-cache/config.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,7 @@ Check that old cache configuration format works fine with an old language
> (cache-trim-period 1h)
> (cache-trim-size 1GB)
> EOF
$ make_dune_project 2.1
$ cat > dune <<EOF
> (rule
> (deps source)
> (targets target)
> (action (copy source target)))
> EOF
$ cat > source <<EOF
> \_o< COIN
> EOF
$ make_dune_cache_copy_project

Test that DUNE_CACHE_ROOT can be used to control the cache location

Expand Down
11 changes: 1 addition & 10 deletions test/blackbox-tests/test-cases/dune-cache/dedup.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@ Test deduplication of build artifacts when using Dune cache with hard links.
$ export DUNE_CACHE=enabled
$ export DUNE_CACHE_ROOT=$(dune_cmd native-path $PWD/.cache)

$ make_dune_project 2.1
$ cat > dune <<EOF
> (rule
> (deps source)
> (targets target)
> (action (copy source target)))
> EOF
$ cat > source <<EOF
> \_o< COIN
> EOF
$ make_dune_cache_copy_project

Here we build [target], which is a copy of [source]. After the build, the same
file will appear in the build directory twice: (i) as [_build/default/source],
Expand Down
Loading