Skip to content

Commit

Permalink
reftest: move local-cache to archive
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Aug 29, 2023
1 parent 84bc52b commit bc7c689
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ users)
### Tests
* Lint: add test for W53, to test extra file with good hash [#5639 @rjbou]
* Add several checksum & cache validation checks for extra-source section, and extra-file field [#5560 @rjbou]
* Move local-cache into archive-field-checks test [#5560 @rjbou]

### Engine

Expand Down
File renamed without changes.
36 changes: 18 additions & 18 deletions tests/reftests/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@
%{targets}
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:admin.test} %{read-lines:testing-env}))))

(rule
(alias reftest-archive)
(action
(diff archive.test archive.out)))

(alias
(name reftest)
(deps (alias reftest-archive)))

(rule
(targets archive.out)
(deps root-N0REP0)
(package opam)
(action
(with-stdout-to
%{targets}
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:archive.test} %{read-lines:testing-env}))))

(rule
(alias reftest-assume-built)
(action
Expand Down Expand Up @@ -728,24 +746,6 @@
%{targets}
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:list.unix.test} %{read-lines:testing-env}))))

(rule
(alias reftest-local-cache)
(action
(diff local-cache.test local-cache.out)))

(alias
(name reftest)
(deps (alias reftest-local-cache)))

(rule
(targets local-cache.out)
(deps root-N0REP0)
(package opam)
(action
(with-stdout-to
%{targets}
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:local-cache.test} %{read-lines:testing-env}))))

(rule
(alias reftest-lock)
(action
Expand Down

0 comments on commit bc7c689

Please sign in to comment.