1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502
|
set -u
. "$TESTSDIR"/test.inc
dodo test ! -d db
testrun - -b . _versioncompare 0 1 3<<EOF
stdout
*='0' is smaller than '1'.
EOF
dodo test ! -d db
mkdir -p conf
cat > conf/distributions <<EOF
Codename: foo/updates
Components: a bb ccc dddd
UDebComponents: a dddd
Architectures: x source
EOF
testrun - -b . export foo/updates 3<<EOF
stderr
stdout
$(odb)
-v1*=Exporting foo/updates...
-v2*=Created directory "./dists"
-v2*=Created directory "./dists/foo"
-v2*=Created directory "./dists/foo/updates"
-v2*=Created directory "./dists/foo/updates/a"
-v2*=Created directory "./dists/foo/updates/a/binary-x"
-v6*= exporting 'foo/updates|a|x'...
-v6*= creating './dists/foo/updates/a/binary-x/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/updates/a/debian-installer"
-v2*=Created directory "./dists/foo/updates/a/debian-installer/binary-x"
-v6*= exporting 'u|foo/updates|a|x'...
-v6*= creating './dists/foo/updates/a/debian-installer/binary-x/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/updates/a/source"
-v6*= exporting 'foo/updates|a|source'...
-v6*= creating './dists/foo/updates/a/source/Sources' (gzipped)
-v2*=Created directory "./dists/foo/updates/bb"
-v2*=Created directory "./dists/foo/updates/bb/binary-x"
-v6*= exporting 'foo/updates|bb|x'...
-v6*= creating './dists/foo/updates/bb/binary-x/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/updates/bb/source"
-v6*= exporting 'foo/updates|bb|source'...
-v6*= creating './dists/foo/updates/bb/source/Sources' (gzipped)
-v2*=Created directory "./dists/foo/updates/ccc"
-v2*=Created directory "./dists/foo/updates/ccc/binary-x"
-v6*= exporting 'foo/updates|ccc|x'...
-v6*= creating './dists/foo/updates/ccc/binary-x/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/updates/ccc/source"
-v6*= exporting 'foo/updates|ccc|source'...
-v6*= creating './dists/foo/updates/ccc/source/Sources' (gzipped)
-v2*=Created directory "./dists/foo/updates/dddd"
-v2*=Created directory "./dists/foo/updates/dddd/binary-x"
-v6*= exporting 'foo/updates|dddd|x'...
-v6*= creating './dists/foo/updates/dddd/binary-x/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/updates/dddd/debian-installer"
-v2*=Created directory "./dists/foo/updates/dddd/debian-installer/binary-x"
-v6*= exporting 'u|foo/updates|dddd|x'...
-v6*= creating './dists/foo/updates/dddd/debian-installer/binary-x/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/updates/dddd/source"
-v6*= exporting 'foo/updates|dddd|source'...
-v6*= creating './dists/foo/updates/dddd/source/Sources' (gzipped)
EOF
cat > results.expected <<EOF
Codename: foo/updates
Date: normalized
Architectures: x
Components: a bb ccc dddd
MD5Sum:
$EMPTYMD5 a/binary-x/Packages
$EMPTYGZMD5 a/binary-x/Packages.gz
62d4df25a6de22ca443076ace929ec5b 29 a/binary-x/Release
$EMPTYMD5 a/debian-installer/binary-x/Packages
$EMPTYGZMD5 a/debian-installer/binary-x/Packages.gz
$EMPTYMD5 a/source/Sources
$EMPTYGZMD5 a/source/Sources.gz
bc76dd633c41acb37f24e22bf755dc84 34 a/source/Release
$EMPTYMD5 bb/binary-x/Packages
$EMPTYGZMD5 bb/binary-x/Packages.gz
6b882eefa465a6e3c43d512f7e8da6e4 30 bb/binary-x/Release
$EMPTYMD5 bb/source/Sources
$EMPTYGZMD5 bb/source/Sources.gz
808be3988e695c1ef966f19641383275 35 bb/source/Release
$EMPTYMD5 ccc/binary-x/Packages
$EMPTYGZMD5 ccc/binary-x/Packages.gz
dec38be5c92799814c9113335317a319 31 ccc/binary-x/Release
$EMPTYMD5 ccc/source/Sources
$EMPTYGZMD5 ccc/source/Sources.gz
650f349d34e8e929dfc732abbf90c74e 36 ccc/source/Release
$EMPTYMD5 dddd/binary-x/Packages
$EMPTYGZMD5 dddd/binary-x/Packages.gz
3e4c48246400818d451e65fb03e48f01 32 dddd/binary-x/Release
$EMPTYMD5 dddd/debian-installer/binary-x/Packages
$EMPTYGZMD5 dddd/debian-installer/binary-x/Packages.gz
$EMPTYMD5 dddd/source/Sources
$EMPTYGZMD5 dddd/source/Sources.gz
bb7b15c091463b7ea884ccca385f1f0a 37 dddd/source/Release
SHA1:
$EMPTYSHA1 a/binary-x/Packages
$EMPTYGZSHA1 a/binary-x/Packages.gz
f312c487ee55fc60c23e9117c6a664cbbd862ae6 29 a/binary-x/Release
$EMPTYSHA1 a/debian-installer/binary-x/Packages
$EMPTYGZSHA1 a/debian-installer/binary-x/Packages.gz
$EMPTYSHA1 a/source/Sources
$EMPTYGZSHA1 a/source/Sources.gz
186977630f5f42744cd6ea6fcf8ea54960992a2f 34 a/source/Release
$EMPTYSHA1 bb/binary-x/Packages
$EMPTYGZSHA1 bb/binary-x/Packages.gz
c4c6cb0f765a9f71682f3d1bfd02279e58609e6b 30 bb/binary-x/Release
$EMPTYSHA1 bb/source/Sources
$EMPTYGZSHA1 bb/source/Sources.gz
59260e2f6e121943909241c125c57aed6fca09ad 35 bb/source/Release
$EMPTYSHA1 ccc/binary-x/Packages
$EMPTYGZSHA1 ccc/binary-x/Packages.gz
7d1913a67637add61ce5ef1ba82eeeb8bc5fe8c6 31 ccc/binary-x/Release
$EMPTYSHA1 ccc/source/Sources
$EMPTYGZSHA1 ccc/source/Sources.gz
a7df74b575289d0697214261e393bc390f428af9 36 ccc/source/Release
$EMPTYSHA1 dddd/binary-x/Packages
$EMPTYGZSHA1 dddd/binary-x/Packages.gz
fc2ab0a76469f8fc81632aa904ceb9c1125ac2c5 32 dddd/binary-x/Release
$EMPTYSHA1 dddd/debian-installer/binary-x/Packages
$EMPTYGZSHA1 dddd/debian-installer/binary-x/Packages.gz
$EMPTYSHA1 dddd/source/Sources
$EMPTYGZSHA1 dddd/source/Sources.gz
1d44f88f82a325658ee96dd7e7cee975ffa50e4d 37 dddd/source/Release
SHA256:
$EMPTYSHA2 a/binary-x/Packages
$EMPTYGZSHA2 a/binary-x/Packages.gz
d5e5ba98f784efc26ac8f5ff1f293fab43f37878c92b3da0a7fce39c1da0b463 29 a/binary-x/Release
$EMPTYSHA2 a/debian-installer/binary-x/Packages
$EMPTYGZSHA2 a/debian-installer/binary-x/Packages.gz
$EMPTYSHA2 a/source/Sources
$EMPTYGZSHA2 a/source/Sources.gz
edd9dad3b1239657da74dfbf45af401ab810b54236b12386189accc0fbc4befa 34 a/source/Release
$EMPTYSHA2 bb/binary-x/Packages
$EMPTYGZSHA2 bb/binary-x/Packages.gz
2d578ea088ccb77f24a437c4657663e9f5a76939c8a23745f8df9f425cc4c137 30 bb/binary-x/Release
$EMPTYSHA2 bb/source/Sources
$EMPTYGZSHA2 bb/source/Sources.gz
4653987e3d0be59da18afcc446e59a0118dd995a13e976162749017e95e6709a 35 bb/source/Release
$EMPTYSHA2 ccc/binary-x/Packages
$EMPTYGZSHA2 ccc/binary-x/Packages.gz
e46b90afc77272a351bdde96253f57cba5852317546467fc61ae47d7696500a6 31 ccc/binary-x/Release
$EMPTYSHA2 ccc/source/Sources
$EMPTYGZSHA2 ccc/source/Sources.gz
a6ef831ba0cc6044019e4d598c5f2483872cf047cb65949bb68c73c028864d76 36 ccc/source/Release
$EMPTYSHA2 dddd/binary-x/Packages
$EMPTYGZSHA2 dddd/binary-x/Packages.gz
70a6c3a457abe60f107f63f0cdb29ab040a4494fefc55922fff0164c97c7a124 32 dddd/binary-x/Release
$EMPTYSHA2 dddd/debian-installer/binary-x/Packages
$EMPTYGZSHA2 dddd/debian-installer/binary-x/Packages.gz
$EMPTYSHA2 dddd/source/Sources
$EMPTYGZSHA2 dddd/source/Sources.gz
504549b725951e79fb2e43149bb0cf42619286284890666b8e9fe5fb0787f306 37 dddd/source/Release
EOF
normalizerelease dists/foo/updates/Release > results
dodiff results.expected results
cat > conf/distributions <<EOF
Codename: foo/updates
Components: a bb ccc dddd
UDebComponents: a dddd
Architectures: x source
FakeComponentPrefix: updates
EOF
testrun - -b . export foo/updates 3<<EOF
stderr
stdout
-v1*=Exporting foo/updates...
-v6*= exporting 'foo/updates|a|x'...
-v6*= replacing './dists/foo/updates/a/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'u|foo/updates|a|x'...
-v6*= replacing './dists/foo/updates/a/debian-installer/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|a|source'...
-v6*= replacing './dists/foo/updates/a/source/Sources' (gzipped)
-v6*= exporting 'foo/updates|bb|x'...
-v6*= replacing './dists/foo/updates/bb/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|bb|source'...
-v6*= replacing './dists/foo/updates/bb/source/Sources' (gzipped)
-v6*= exporting 'foo/updates|ccc|x'...
-v6*= replacing './dists/foo/updates/ccc/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|ccc|source'...
-v6*= replacing './dists/foo/updates/ccc/source/Sources' (gzipped)
-v6*= exporting 'foo/updates|dddd|x'...
-v6*= replacing './dists/foo/updates/dddd/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'u|foo/updates|dddd|x'...
-v6*= replacing './dists/foo/updates/dddd/debian-installer/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|dddd|source'...
-v6*= replacing './dists/foo/updates/dddd/source/Sources' (gzipped)
EOF
cat > results.expected <<EOF
Codename: foo
Date: normalized
Architectures: x
Components: updates/a updates/bb updates/ccc updates/dddd
MD5Sum:
$EMPTYMD5 a/binary-x/Packages
$EMPTYGZMD5 a/binary-x/Packages.gz
62d4df25a6de22ca443076ace929ec5b 29 a/binary-x/Release
$EMPTYMD5 a/debian-installer/binary-x/Packages
$EMPTYGZMD5 a/debian-installer/binary-x/Packages.gz
$EMPTYMD5 a/source/Sources
$EMPTYGZMD5 a/source/Sources.gz
bc76dd633c41acb37f24e22bf755dc84 34 a/source/Release
$EMPTYMD5 bb/binary-x/Packages
$EMPTYGZMD5 bb/binary-x/Packages.gz
6b882eefa465a6e3c43d512f7e8da6e4 30 bb/binary-x/Release
$EMPTYMD5 bb/source/Sources
$EMPTYGZMD5 bb/source/Sources.gz
808be3988e695c1ef966f19641383275 35 bb/source/Release
$EMPTYMD5 ccc/binary-x/Packages
$EMPTYGZMD5 ccc/binary-x/Packages.gz
dec38be5c92799814c9113335317a319 31 ccc/binary-x/Release
$EMPTYMD5 ccc/source/Sources
$EMPTYGZMD5 ccc/source/Sources.gz
650f349d34e8e929dfc732abbf90c74e 36 ccc/source/Release
$EMPTYMD5 dddd/binary-x/Packages
$EMPTYGZMD5 dddd/binary-x/Packages.gz
3e4c48246400818d451e65fb03e48f01 32 dddd/binary-x/Release
$EMPTYMD5 dddd/debian-installer/binary-x/Packages
$EMPTYGZMD5 dddd/debian-installer/binary-x/Packages.gz
$EMPTYMD5 dddd/source/Sources
$EMPTYGZMD5 dddd/source/Sources.gz
bb7b15c091463b7ea884ccca385f1f0a 37 dddd/source/Release
SHA1:
$EMPTYSHA1 a/binary-x/Packages
$EMPTYGZSHA1 a/binary-x/Packages.gz
f312c487ee55fc60c23e9117c6a664cbbd862ae6 29 a/binary-x/Release
$EMPTYSHA1 a/debian-installer/binary-x/Packages
$EMPTYGZSHA1 a/debian-installer/binary-x/Packages.gz
$EMPTYSHA1 a/source/Sources
$EMPTYGZSHA1 a/source/Sources.gz
186977630f5f42744cd6ea6fcf8ea54960992a2f 34 a/source/Release
$EMPTYSHA1 bb/binary-x/Packages
$EMPTYGZSHA1 bb/binary-x/Packages.gz
c4c6cb0f765a9f71682f3d1bfd02279e58609e6b 30 bb/binary-x/Release
$EMPTYSHA1 bb/source/Sources
$EMPTYGZSHA1 bb/source/Sources.gz
59260e2f6e121943909241c125c57aed6fca09ad 35 bb/source/Release
$EMPTYSHA1 ccc/binary-x/Packages
$EMPTYGZSHA1 ccc/binary-x/Packages.gz
7d1913a67637add61ce5ef1ba82eeeb8bc5fe8c6 31 ccc/binary-x/Release
$EMPTYSHA1 ccc/source/Sources
$EMPTYGZSHA1 ccc/source/Sources.gz
a7df74b575289d0697214261e393bc390f428af9 36 ccc/source/Release
$EMPTYSHA1 dddd/binary-x/Packages
$EMPTYGZSHA1 dddd/binary-x/Packages.gz
fc2ab0a76469f8fc81632aa904ceb9c1125ac2c5 32 dddd/binary-x/Release
$EMPTYSHA1 dddd/debian-installer/binary-x/Packages
$EMPTYGZSHA1 dddd/debian-installer/binary-x/Packages.gz
$EMPTYSHA1 dddd/source/Sources
$EMPTYGZSHA1 dddd/source/Sources.gz
1d44f88f82a325658ee96dd7e7cee975ffa50e4d 37 dddd/source/Release
SHA256:
$EMPTYSHA2 a/binary-x/Packages
$EMPTYGZSHA2 a/binary-x/Packages.gz
d5e5ba98f784efc26ac8f5ff1f293fab43f37878c92b3da0a7fce39c1da0b463 29 a/binary-x/Release
$EMPTYSHA2 a/debian-installer/binary-x/Packages
$EMPTYGZSHA2 a/debian-installer/binary-x/Packages.gz
$EMPTYSHA2 a/source/Sources
$EMPTYGZSHA2 a/source/Sources.gz
edd9dad3b1239657da74dfbf45af401ab810b54236b12386189accc0fbc4befa 34 a/source/Release
$EMPTYSHA2 bb/binary-x/Packages
$EMPTYGZSHA2 bb/binary-x/Packages.gz
2d578ea088ccb77f24a437c4657663e9f5a76939c8a23745f8df9f425cc4c137 30 bb/binary-x/Release
$EMPTYSHA2 bb/source/Sources
$EMPTYGZSHA2 bb/source/Sources.gz
4653987e3d0be59da18afcc446e59a0118dd995a13e976162749017e95e6709a 35 bb/source/Release
$EMPTYSHA2 ccc/binary-x/Packages
$EMPTYGZSHA2 ccc/binary-x/Packages.gz
e46b90afc77272a351bdde96253f57cba5852317546467fc61ae47d7696500a6 31 ccc/binary-x/Release
$EMPTYSHA2 ccc/source/Sources
$EMPTYGZSHA2 ccc/source/Sources.gz
a6ef831ba0cc6044019e4d598c5f2483872cf047cb65949bb68c73c028864d76 36 ccc/source/Release
$EMPTYSHA2 dddd/binary-x/Packages
$EMPTYGZSHA2 dddd/binary-x/Packages.gz
70a6c3a457abe60f107f63f0cdb29ab040a4494fefc55922fff0164c97c7a124 32 dddd/binary-x/Release
$EMPTYSHA2 dddd/debian-installer/binary-x/Packages
$EMPTYGZSHA2 dddd/debian-installer/binary-x/Packages.gz
$EMPTYSHA2 dddd/source/Sources
$EMPTYGZSHA2 dddd/source/Sources.gz
504549b725951e79fb2e43149bb0cf42619286284890666b8e9fe5fb0787f306 37 dddd/source/Release
EOF
normalizerelease dists/foo/updates/Release > results
dodiff results.expected results
# Now try with suite
cat > conf/distributions <<EOF
Codename: foo/updates
Suite: bla/updates
Components: a bb ccc dddd
UDebComponents: a dddd
Architectures: x source
FakeComponentPrefix: updates
EOF
testrun - -b . export foo/updates 3<<EOF
stderr
stdout
-v1*=Exporting foo/updates...
-v6*= exporting 'foo/updates|a|x'...
-v6*= replacing './dists/foo/updates/a/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'u|foo/updates|a|x'...
-v6*= replacing './dists/foo/updates/a/debian-installer/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|a|source'...
-v6*= replacing './dists/foo/updates/a/source/Sources' (gzipped)
-v6*= exporting 'foo/updates|bb|x'...
-v6*= replacing './dists/foo/updates/bb/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|bb|source'...
-v6*= replacing './dists/foo/updates/bb/source/Sources' (gzipped)
-v6*= exporting 'foo/updates|ccc|x'...
-v6*= replacing './dists/foo/updates/ccc/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|ccc|source'...
-v6*= replacing './dists/foo/updates/ccc/source/Sources' (gzipped)
-v6*= exporting 'foo/updates|dddd|x'...
-v6*= replacing './dists/foo/updates/dddd/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'u|foo/updates|dddd|x'...
-v6*= replacing './dists/foo/updates/dddd/debian-installer/binary-x/Packages' (uncompressed,gzipped)
-v6*= exporting 'foo/updates|dddd|source'...
-v6*= replacing './dists/foo/updates/dddd/source/Sources' (gzipped)
EOF
cat > results.expected <<EOF
Suite: bla
Codename: foo
Date: normalized
Architectures: x
Components: updates/a updates/bb updates/ccc updates/dddd
MD5Sum:
$EMPTYMD5 a/binary-x/Packages
$EMPTYGZMD5 a/binary-x/Packages.gz
$(md5releaseline foo/updates a/binary-x/Release)
$EMPTYMD5 a/debian-installer/binary-x/Packages
$EMPTYGZMD5 a/debian-installer/binary-x/Packages.gz
$EMPTYMD5 a/source/Sources
$EMPTYGZMD5 a/source/Sources.gz
$(md5releaseline foo/updates a/source/Release)
$EMPTYMD5 bb/binary-x/Packages
$EMPTYGZMD5 bb/binary-x/Packages.gz
$(md5releaseline foo/updates bb/binary-x/Release)
$EMPTYMD5 bb/source/Sources
$EMPTYGZMD5 bb/source/Sources.gz
$(md5releaseline foo/updates bb/source/Release)
$EMPTYMD5 ccc/binary-x/Packages
$EMPTYGZMD5 ccc/binary-x/Packages.gz
$(md5releaseline foo/updates ccc/binary-x/Release)
$EMPTYMD5 ccc/source/Sources
$EMPTYGZMD5 ccc/source/Sources.gz
$(md5releaseline foo/updates ccc/source/Release)
$EMPTYMD5 dddd/binary-x/Packages
$EMPTYGZMD5 dddd/binary-x/Packages.gz
$(md5releaseline foo/updates dddd/binary-x/Release)
$EMPTYMD5 dddd/debian-installer/binary-x/Packages
$EMPTYGZMD5 dddd/debian-installer/binary-x/Packages.gz
$EMPTYMD5 dddd/source/Sources
$EMPTYGZMD5 dddd/source/Sources.gz
$(md5releaseline foo/updates dddd/source/Release)
SHA1:
$EMPTYSHA1 a/binary-x/Packages
$EMPTYGZSHA1 a/binary-x/Packages.gz
$(sha1releaseline foo/updates a/binary-x/Release)
$EMPTYSHA1 a/debian-installer/binary-x/Packages
$EMPTYGZSHA1 a/debian-installer/binary-x/Packages.gz
$EMPTYSHA1 a/source/Sources
$EMPTYGZSHA1 a/source/Sources.gz
$(sha1releaseline foo/updates a/source/Release)
$EMPTYSHA1 bb/binary-x/Packages
$EMPTYGZSHA1 bb/binary-x/Packages.gz
$(sha1releaseline foo/updates bb/binary-x/Release)
$EMPTYSHA1 bb/source/Sources
$EMPTYGZSHA1 bb/source/Sources.gz
$(sha1releaseline foo/updates bb/source/Release)
$EMPTYSHA1 ccc/binary-x/Packages
$EMPTYGZSHA1 ccc/binary-x/Packages.gz
$(sha1releaseline foo/updates ccc/binary-x/Release)
$EMPTYSHA1 ccc/source/Sources
$EMPTYGZSHA1 ccc/source/Sources.gz
$(sha1releaseline foo/updates ccc/source/Release)
$EMPTYSHA1 dddd/binary-x/Packages
$EMPTYGZSHA1 dddd/binary-x/Packages.gz
$(sha1releaseline foo/updates dddd/binary-x/Release)
$EMPTYSHA1 dddd/debian-installer/binary-x/Packages
$EMPTYGZSHA1 dddd/debian-installer/binary-x/Packages.gz
$EMPTYSHA1 dddd/source/Sources
$EMPTYGZSHA1 dddd/source/Sources.gz
$(sha1releaseline foo/updates dddd/source/Release)
SHA256:
$EMPTYSHA2 a/binary-x/Packages
$EMPTYGZSHA2 a/binary-x/Packages.gz
$(sha2releaseline foo/updates a/binary-x/Release)
$EMPTYSHA2 a/debian-installer/binary-x/Packages
$EMPTYGZSHA2 a/debian-installer/binary-x/Packages.gz
$EMPTYSHA2 a/source/Sources
$EMPTYGZSHA2 a/source/Sources.gz
$(sha2releaseline foo/updates a/source/Release)
$EMPTYSHA2 bb/binary-x/Packages
$EMPTYGZSHA2 bb/binary-x/Packages.gz
$(sha2releaseline foo/updates bb/binary-x/Release)
$EMPTYSHA2 bb/source/Sources
$EMPTYGZSHA2 bb/source/Sources.gz
$(sha2releaseline foo/updates bb/source/Release)
$EMPTYSHA2 ccc/binary-x/Packages
$EMPTYGZSHA2 ccc/binary-x/Packages.gz
$(sha2releaseline foo/updates ccc/binary-x/Release)
$EMPTYSHA2 ccc/source/Sources
$EMPTYGZSHA2 ccc/source/Sources.gz
$(sha2releaseline foo/updates ccc/source/Release)
$EMPTYSHA2 dddd/binary-x/Packages
$EMPTYGZSHA2 dddd/binary-x/Packages.gz
$(sha2releaseline foo/updates dddd/binary-x/Release)
$EMPTYSHA2 dddd/debian-installer/binary-x/Packages
$EMPTYGZSHA2 dddd/debian-installer/binary-x/Packages.gz
$EMPTYSHA2 dddd/source/Sources
$EMPTYGZSHA2 dddd/source/Sources.gz
$(sha2releaseline foo/updates dddd/source/Release)
EOF
normalizerelease dists/foo/updates/Release > results
dodiff results.expected results
testrun - -b . createsymlinks 3<<EOF
stderr
-v0*=Creating symlinks with '/' in them is not yet supported:
-v0*=Not creating 'bla/updates' -> 'foo/updates' because of '/'.
stdout
EOF
cat >> conf/distributions <<EOF
Codename: foo
Suite: bla
Architectures: ooooooooooooooooooooooooooooooooooooooooo source
Components:
x a
EOF
testrun - -b . createsymlinks 3<<EOF
stderr
-v2*=Not creating 'bla/updates' -> 'foo/updates' because of the '/' in it.
-v2*=Hopefully something else will link 'bla' -> 'foo' then this is not needed.
stdout
-v1*=Created ./dists/bla->foo
EOF
# check a .dsc with nothing in it:
cat > test.dsc <<EOF
EOF
testrun - -b . includedsc foo test.dsc 3<<EOF
return 255
stderr
*=Could only find spaces within 'test.dsc'!
-v0*=There have been errors!
stdout
EOF
cat > test.dsc <<EOF
Format: 0.0
Source: test
Version: 0
Maintainer: me <guess@who>
Section: section
Priority: priority
Files:
EOF
testrun - -C a -b . includedsc foo test.dsc 3<<EOF
stdout
-v2*=Created directory "./pool"
-v2*=Created directory "./pool/a"
-v2*=Created directory "./pool/a/t"
-v2*=Created directory "./pool/a/t/test"
$(ofa 'pool/a/t/test/test_0.dsc')
$(opa 'test' unset 'foo' 'a' 'source' 'dsc')
-v0*=Exporting indices...
-v2*=Created directory "./dists/foo/x"
-v2*=Created directory "./dists/foo/x/binary-ooooooooooooooooooooooooooooooooooooooooo"
-v6*= looking for changes in 'foo|x|ooooooooooooooooooooooooooooooooooooooooo'...
-v6*= creating './dists/foo/x/binary-ooooooooooooooooooooooooooooooooooooooooo/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/x/source"
-v6*= looking for changes in 'foo|x|source'...
-v6*= creating './dists/foo/x/source/Sources' (gzipped)
-v2*=Created directory "./dists/foo/a"
-v2*=Created directory "./dists/foo/a/binary-ooooooooooooooooooooooooooooooooooooooooo"
-v6*= looking for changes in 'foo|a|ooooooooooooooooooooooooooooooooooooooooo'...
-v6*= creating './dists/foo/a/binary-ooooooooooooooooooooooooooooooooooooooooo/Packages' (uncompressed,gzipped)
-v2*=Created directory "./dists/foo/a/source"
-v6*= looking for changes in 'foo|a|source'...
-v6*= creating './dists/foo/a/source/Sources' (gzipped)
EOF
testrun - -b . copy foo/updates foo test test test test 3<<EOF
stderr
-v0*=Hint: 'test' was listed multiple times, ignoring all but first!
stdout
-v3*=Not looking into 'foo|x|ooooooooooooooooooooooooooooooooooooooooo' as no matching target in 'foo/updates'!
-v3*=Not looking into 'foo|x|source' as no matching target in 'foo/updates'!
-v3*=Not looking into 'foo|a|ooooooooooooooooooooooooooooooooooooooooo' as no matching target in 'foo/updates'!
-v1*=Adding 'test' '0' to 'foo/updates|a|source'.
$(opa 'test' unset 'foo/updates' 'a' 'source' 'dsc')
-v*=Exporting indices...
-v6*= looking for changes in 'foo/updates|a|x'...
-v6*= looking for changes in 'u|foo/updates|a|x'...
-v6*= looking for changes in 'foo/updates|a|source'...
-v6*= replacing './dists/foo/updates/a/source/Sources' (gzipped)
-v6*= looking for changes in 'foo/updates|bb|x'...
-v6*= looking for changes in 'foo/updates|bb|source'...
-v6*= looking for changes in 'foo/updates|ccc|x'...
-v6*= looking for changes in 'foo/updates|ccc|source'...
-v6*= looking for changes in 'foo/updates|dddd|x'...
-v6*= looking for changes in 'u|foo/updates|dddd|x'...
-v6*= looking for changes in 'foo/updates|dddd|source'...
EOF
rm -r -f db conf dists pool
testsuccess
|