Skip to content

Commit 7758fb0

Browse files
committed
reftest: add test for variables resolutions in filter, for all fields
1 parent f892a2e commit 7758fb0

File tree

3 files changed

+1129
-0
lines changed

3 files changed

+1129
-0
lines changed

master_changes.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,27 @@ users)
118118
* pin: add a test for erroneous first fetch done as local path on local VCS pinned packages [#6221 @rjbou]
119119
* Add cache test for installed packages cache update after an action failure [#6213 @kit-ty-kate @rjbou]
120120
* Add more tests for lint W59 [#6219 @rjbou]
121+
* cli versioning: untie output from current major version [#6045 @rjbou]
122+
* Set `opam-version` to 2.2 for some conflict message tests based on opam repository to stabilise their output [#6045 @rjbou]
123+
* [BUG]: head -c is not posix compliant. Use cut -b instead. [#5989 @madroach]
124+
* Add bad cudf package name encoding (dose3 lib) [#6055 @rjbou]
125+
* Add test for filter operators in opam file [#5642 @rjbou]
126+
* Update init test to make it no repo [#5327 @rjbou]
127+
* Add a test in admin cache for hash cache [#6103 @rjbou]
128+
* Add admin cache test [#6068 @rjbou]
129+
* env: Add a test for `build-env` overwrites build env opam environment variables [#5377 @rjbou]
130+
* clean: Add to check cleaning of sources directories [#5474 @rjbou]
131+
* Add reftest for `--verbose-on` option [#5682 @rjbou]
132+
* Add a test for --deps-only setting direct dependencies as root packages [#6125 @rjbou]
133+
* Add a test file for `opam install --check` [#6121 @kit-ty-kate]
134+
* Add reinstall test for delayed removal of packages [#6139 @rjbou]
135+
* Add a test showing the behaviour of `opam list --latests-only` [#5375 @kit-ty-kate]
136+
* Add a test filtering mechanism [#6105 @Keryan-dev]
137+
* Add a package fetching test [#6146 @rjbou]
138+
* Add a test showing the behaviour of `opam switch list-available` [#6098 @kit-ty-kate]
139+
* Add a test for git packages with submodules [#6132 @kit-ty-kate]
140+
* Add basic test for `install --check` [#6122 @rjbou]
141+
* Add test for variables resolution in filters, for all fields [#5643 @rjbou]
121142

122143
### Engine
123144
* Update print file function [#6233 @rjbou]

tests/reftests/dune.inc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,27 @@
818818
%{targets}
819819
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:filter-operators.test} %{read-lines:testing-env}))))
820820

821+
(rule
822+
(alias reftest-filter-variable-resolution)
823+
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))
824+
(action
825+
(diff filter-variable-resolution.test filter-variable-resolution.out)))
826+
827+
(alias
828+
(name reftest)
829+
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))
830+
(deps (alias reftest-filter-variable-resolution)))
831+
832+
(rule
833+
(targets filter-variable-resolution.out)
834+
(deps root-N0REP0)
835+
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))
836+
(package opam)
837+
(action
838+
(with-stdout-to
839+
%{targets}
840+
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:filter-variable-resolution.test} %{read-lines:testing-env}))))
841+
821842
(rule
822843
(alias reftest-git)
823844
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))

0 commit comments

Comments
 (0)