Skip to content

Commit 33415c2

Browse files
committed
reftest: label init tests
1 parent 3d83651 commit 33415c2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/reftests/init.test

+7-3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ depends: [ "ocaml" {= "4.10.0" & post} ]
6767
flags: compiler
6868
conflict-class: "ocaml-core-compiler"
6969
### :---:
70+
### :I: Default compiler selection
71+
### :I:1: No system compiler
7072
### rm -rf ${OPAMROOT}
7173
### <opamrc>
7274
eval-variables: [ sys-ocaml-version ["false"] "no system compiler" ]
@@ -87,6 +89,7 @@ Switch invariant: ["ocaml" {>= "4.05.0"}]
8789
Done.
8890
### opam switch invariant
8991
["ocaml" {>= "4.05.0"}]
92+
### :I:2: system compiler not compliant with default invariant
9093
### rm -rf ${OPAMROOT}
9194
### <opamrc>
9295
eval-variables: [ sys-ocaml-version ["echo" "4.02.3"] "old system compiler" ]
@@ -107,6 +110,7 @@ Switch invariant: ["ocaml" {>= "4.05.0"}]
107110
Done.
108111
### opam switch invariant
109112
["ocaml" {>= "4.05.0"}]
113+
### :I:3: System compiler = 4.07.0, should be selected default
110114
### rm -rf ${OPAMROOT}
111115
### <opamrc>
112116
eval-variables: [ sys-ocaml-version ["echo" "4.07.0"] "new system compiler" ]
@@ -146,8 +150,8 @@ The following actions will be performed:
146150
-> installed ocaml-base-compiler.4.10.0
147151
-> installed ocaml.4.10.0
148152
Done.
149-
### : Init with config file :
150-
### :: default setup ::
153+
### :II: Init with config file :
154+
### :II:a: default setup ::
151155
### rm -rf $OPAMROOT
152156
### opam init --bypass-checks --bare --no-setup default REPO/ | grep -v Cygwin
153157
No configuration file found, using built-in defaults.
@@ -168,7 +172,7 @@ swh-fallback: false
168172
wrap-build-commands: ["%{hooks}%/sandbox.sh" "build"] {os = "linux" | os = "macos"}
169173
wrap-install-commands: ["%{hooks}%/sandbox.sh" "install"] {os = "linux" | os = "macos"}
170174
wrap-remove-commands: ["%{hooks}%/sandbox.sh" "remove"] {os = "linux" | os = "macos"}
171-
### :: full configured opamrc ::
175+
### :II:b: full configured opamrc ::
172176
### rm -rf $OPAMROOT
173177
### <opamrc>
174178
opam-version: "2.0"

0 commit comments

Comments
 (0)