|
| 1 | +N0REP0 |
| 2 | +### : test all the fields to check that effectively_equal works as expected |
| 3 | +### : each fields' value is placed on the next line to ensure the position will differ from the normalised version |
| 4 | +### <pkg:test-all-fields.1> |
| 5 | +opam-version: |
| 6 | +"2.0" |
| 7 | +name: |
| 8 | +"test-all-fields" |
| 9 | +version: |
| 10 | +"1" |
| 11 | +depends: |
| 12 | +["dummy-dep" {some-filter}] |
| 13 | +conflicts: |
| 14 | +["dummy-conflict" {some-filter}] |
| 15 | +depopts: |
| 16 | +["dummy-dep" {some-filter}] |
| 17 | +conflict-class: |
| 18 | +"conflict-class" |
| 19 | +available: |
| 20 | +true |
| 21 | +flags: |
| 22 | +[plugin] |
| 23 | +setenv: |
| 24 | +[ENV = "some value"] |
| 25 | +build: |
| 26 | +["false" {some-filter}] |
| 27 | +run-test: |
| 28 | +["false" {some-filter}] |
| 29 | +install: |
| 30 | +["false" {some-filter}] |
| 31 | +remove: |
| 32 | +["false" {some-filter}] |
| 33 | +substs: |
| 34 | +["some-file"] |
| 35 | +patches: |
| 36 | +["some-patches" {some-filter}] |
| 37 | +build-env: |
| 38 | +[BUILD_ENV = "some value"] |
| 39 | +extra-source |
| 40 | +"some-file" |
| 41 | +{ |
| 42 | +src: |
| 43 | +"https://example.com" |
| 44 | +checksum: "md5=d41d8cd98f00b204e9800998ecf8427e" |
| 45 | +} |
| 46 | +messages: |
| 47 | +["message" {some-filter}] |
| 48 | +post-messages: |
| 49 | +["post-message" {some-filter}] |
| 50 | +depexts: |
| 51 | +[["depext"] {some-filter}] |
| 52 | +dev-repo: |
| 53 | +"git+https://example.com" |
| 54 | +pin-depends: |
| 55 | +["dep.dev" "https://example.com"] |
| 56 | +maintainer: |
| 57 | +"maintainer" |
| 58 | +authors: |
| 59 | +["author1" "author2"] |
| 60 | +license: |
| 61 | +"LicenseRef-custom" |
| 62 | +tags: |
| 63 | +["tag"] |
| 64 | +homepage: |
| 65 | +"https://example.com" |
| 66 | +doc: |
| 67 | +"https://example.com" |
| 68 | +bug-reports: |
| 69 | +"https://example.com" |
| 70 | +x-some-extension: |
| 71 | +[ext "something"] |
| 72 | +x-env-path-rewrite: |
| 73 | +[[ENV false]] |
| 74 | +url |
| 75 | +{ |
| 76 | +src: "https://example.com" |
| 77 | +checksum: "md5=d41d8cd98f00b204e9800998ecf8427e" |
| 78 | +} |
| 79 | +synopsis: |
| 80 | +"some synopsis" |
| 81 | +description: |
| 82 | +"some description" |
| 83 | +### opam switch create eff-eq --empty |
| 84 | +### opam var --global some-filter=false |
| 85 | +Added '[some-filter "false" "Set through 'opam var'"]' to field global-variables in global configuration |
| 86 | +### opam install --fake test-all-fields |
| 87 | +The following actions will be faked: |
| 88 | +=== install 1 package |
| 89 | + - install test-all-fields 1 |
| 90 | + |
| 91 | +<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> |
| 92 | +Faking installation of test-all-fields.1 |
| 93 | +Done. |
| 94 | +### cat OPAM/repo/default/packages/test-all-fields/test-all-fields.1/opam |
| 95 | +opam-version: |
| 96 | +"2.0" |
| 97 | +name: |
| 98 | +"test-all-fields" |
| 99 | +version: |
| 100 | +"1" |
| 101 | +depends: |
| 102 | +["dummy-dep" {some-filter}] |
| 103 | +conflicts: |
| 104 | +["dummy-conflict" {some-filter}] |
| 105 | +depopts: |
| 106 | +["dummy-dep" {some-filter}] |
| 107 | +conflict-class: |
| 108 | +"conflict-class" |
| 109 | +available: |
| 110 | +true |
| 111 | +flags: |
| 112 | +[plugin] |
| 113 | +setenv: |
| 114 | +[ENV = "some value"] |
| 115 | +build: |
| 116 | +["false" {some-filter}] |
| 117 | +run-test: |
| 118 | +["false" {some-filter}] |
| 119 | +install: |
| 120 | +["false" {some-filter}] |
| 121 | +remove: |
| 122 | +["false" {some-filter}] |
| 123 | +substs: |
| 124 | +["some-file"] |
| 125 | +patches: |
| 126 | +["some-patches" {some-filter}] |
| 127 | +build-env: |
| 128 | +[BUILD_ENV = "some value"] |
| 129 | +extra-source |
| 130 | +"some-file" |
| 131 | +{ |
| 132 | +src: |
| 133 | +"https://example.com" |
| 134 | +checksum: "md5=d41d8cd98f00b204e9800998ecf8427e" |
| 135 | +} |
| 136 | +messages: |
| 137 | +["message" {some-filter}] |
| 138 | +post-messages: |
| 139 | +["post-message" {some-filter}] |
| 140 | +depexts: |
| 141 | +[["depext"] {some-filter}] |
| 142 | +dev-repo: |
| 143 | +"git+https://example.com" |
| 144 | +pin-depends: |
| 145 | +["dep.dev" "https://example.com"] |
| 146 | +maintainer: |
| 147 | +"maintainer" |
| 148 | +authors: |
| 149 | +["author1" "author2"] |
| 150 | +license: |
| 151 | +"LicenseRef-custom" |
| 152 | +tags: |
| 153 | +["tag"] |
| 154 | +homepage: |
| 155 | +"https://example.com" |
| 156 | +doc: |
| 157 | +"https://example.com" |
| 158 | +bug-reports: |
| 159 | +"https://example.com" |
| 160 | +x-some-extension: |
| 161 | +[ext "something"] |
| 162 | +x-env-path-rewrite: |
| 163 | +[[ENV false]] |
| 164 | +url |
| 165 | +{ |
| 166 | +src: "https://example.com" |
| 167 | +checksum: "md5=d41d8cd98f00b204e9800998ecf8427e" |
| 168 | +} |
| 169 | +synopsis: |
| 170 | +"some synopsis" |
| 171 | +description: |
| 172 | +"some description" |
| 173 | +### cat OPAM/eff-eq/.opam-switch/packages/test-all-fields.1/opam |
| 174 | +opam-version: "2.0" |
| 175 | +synopsis: "some synopsis" |
| 176 | +description: "some description" |
| 177 | +maintainer: "maintainer" |
| 178 | +authors: ["author1" "author2"] |
| 179 | +license: "LicenseRef-custom" |
| 180 | +tags: "tag" |
| 181 | +homepage: "https://example.com" |
| 182 | +doc: "https://example.com" |
| 183 | +bug-reports: "https://example.com" |
| 184 | +depends: [ |
| 185 | + "dummy-dep" {some-filter} |
| 186 | +] |
| 187 | +depopts: [ |
| 188 | + "dummy-dep" {some-filter} |
| 189 | +] |
| 190 | +conflicts: [ |
| 191 | + "dummy-conflict" {some-filter} |
| 192 | +] |
| 193 | +conflict-class: "conflict-class" |
| 194 | +flags: plugin |
| 195 | +setenv: ENV = "some value" |
| 196 | +build: "false" {some-filter} |
| 197 | +run-test: "false" {some-filter} |
| 198 | +install: "false" {some-filter} |
| 199 | +remove: "false" {some-filter} |
| 200 | +substs: "some-file" |
| 201 | +patches: "some-patches" {some-filter} |
| 202 | +build-env: BUILD_ENV = "some value" |
| 203 | +messages: "message" {some-filter} |
| 204 | +post-messages: "post-message" {some-filter} |
| 205 | +depexts: ["depext"] {some-filter} |
| 206 | +dev-repo: "git+https://example.com" |
| 207 | +pin-depends: ["dep.dev" "https://example.com"] |
| 208 | +url { |
| 209 | + src: "https://example.com" |
| 210 | + checksum: "md5=d41d8cd98f00b204e9800998ecf8427e" |
| 211 | +} |
| 212 | +extra-source "some-file" { |
| 213 | + src: "https://example.com" |
| 214 | + checksum: "md5=d41d8cd98f00b204e9800998ecf8427e" |
| 215 | +} |
| 216 | +x-env-path-rewrite: [ |
| 217 | + [ENV false] |
| 218 | +] |
| 219 | +x-some-extension: [ext "something"] |
| 220 | +### opam upgrade |
| 221 | +Already up-to-date. |
| 222 | +Nothing to do. |
| 223 | +### rm OPAM/eff-eq/.opam-switch/packages/cache |
| 224 | +### opam upgrade --show |
| 225 | +Already up-to-date. |
| 226 | +Nothing to do. |
0 commit comments