Browse Source

- fixed some conformance tests

dev
Andreas Romeyke 5 months ago
parent
commit
e7a102c49e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      t/verify_bag.t

+ 2
- 2
t/verify_bag.t View File

@ -118,7 +118,7 @@ foreach my $prefix (@prefix_manifestfiles) {
[ qw(../bagit_conformance_suite/v0.97/invalid/corrupt-tag-file), qr{file 'bag-info\.txt' invalid, digest \(md5\).*} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/extra-file-in-bag), qr{file 'data/bar' found, which is not in 'manifest-md5\.txt'} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/invalid-version-number), qr{Version string 'BagIt-Version: \.97'.* is incorrect} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/missing-baginfo), qr{Cannot read.*bag-info\.txt} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/missing-baginfo), qr{file 'bag-info\.txt' NOT found, but expected via 'tagmanifest-md5\.txt'} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/missing-bagit.txt), qr{Cannot read.*bagit\.txt} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/out-of-scope-file-paths-using-dot-notation-for-fetch), qr{Fetching via file .*fetch\.txt.*not supported} ],
[ qw(../bagit_conformance_suite/v0.97/invalid/out-of-scope-file-paths-using-dot-notation), qr{file .*\./README\.md' not allowed in 'manifest-md5\.txt'} ],
@ -146,7 +146,7 @@ foreach my $prefix (@prefix_manifestfiles) {
my @should_fail_bags_100 = (
# FIXME: next testcase does not work because missing sha256-checks
#[qw(../bagit_conformance_suite/v1.0/invalid/same-filename-listed-twice-with-different-hashes), "FOO"],
[qw(../bagit_conformance_suite/v1.0/invalid/missing-baginfo), qr{Cannot read.*bag-info\.txt}],
[qw(../bagit_conformance_suite/v1.0/invalid/missing-from-manifest), qr{file 'data/missingFromManifest\.txt' found, which is not in 'manifest-sha512\.txt'}],
[qw(../bagit_conformance_suite/v1.0/invalid/bagit-with-invalid-whitespace), qr{Version string 'BagIt-Version : 1.0'.* is incorrect}],
);
my @should_pass_bags_100 = (


Loading…
Cancel
Save