Skip to content

Commit c048c05

Browse files
authored
Merge pull request #6135 from rjbou/pin-test
Reftest: add pin command test
2 parents a01d85a + ab8c465 commit c048c05

File tree

4 files changed

+1297
-347
lines changed

4 files changed

+1297
-347
lines changed

master_changes.md

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ users)
107107

108108
## Reftests
109109
### Tests
110+
* Move pin test to pin-legacy [#6135 @rjbou]
111+
* More exhaustive test for pin command: test different behaviour and cli options [#6135 @rjbou]
110112

111113
### Engine
112114

tests/reftests/dune.inc

+21
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,27 @@
13641364
%{targets}
13651365
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:pat-sub.test} %{read-lines:testing-env}))))
13661366

1367+
(rule
1368+
(alias reftest-pin-legacy)
1369+
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))
1370+
(action
1371+
(diff pin-legacy.test pin-legacy.out)))
1372+
1373+
(alias
1374+
(name reftest)
1375+
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))
1376+
(deps (alias reftest-pin-legacy)))
1377+
1378+
(rule
1379+
(targets pin-legacy.out)
1380+
(deps root-N0REP0)
1381+
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))
1382+
(package opam)
1383+
(action
1384+
(with-stdout-to
1385+
%{targets}
1386+
(run ./run.exe %{exe:../../src/client/opamMain.exe.exe} %{dep:pin-legacy.test} %{read-lines:testing-env}))))
1387+
13671388
(rule
13681389
(alias reftest-pin)
13691390
(enabled_if (and (or (<> %{env:TESTALL=1} 0) (= %{env:TESTN0REP0=0} 1))))

0 commit comments

Comments
 (0)