A clone of 'official' Archive::BagIt reposity by CPAN author Rob Schmidt (https://github.com/rjeschmi/Archive-BagIt). This repository contains patches to update Archive::BagIt to version 1.0 of BagIt, see RFC 8493 (https://tools.ietf.org/html/rfc8493)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Romeyke 914d63826a - fixed whitespace in version string 3 months ago
..
v0.97 - removed testdata from conformance tests, because it makes problems in CPAN/KWALITEE with MAC specific filename 3 months ago
v1.0 - fixed whitespace in version string 3 months ago
LICENSE.md - moved conformance suite outside of t/ to avoid clashes 4 months ago
README.1st - moved conformance suite outside of t/ to avoid clashes 4 months ago
README.md - moved conformance suite outside of t/ to avoid clashes 4 months ago
test-harness - moved conformance suite outside of t/ to avoid clashes 4 months ago

README.md

BagIt Conformance Suite

This is a simple collection of BagIt format test cases for different implementations.

Structure

  • The top level of the repository contains directories for each version of the BagIt RFC, prefixed with “v”
  • Each version directory should contain a directory named “valid” containing bag directories which must pass validation and “invalid” containing bag directories which must fail validation.
  • It may also have the following optional directories:
    • a “warning” directory containing bags which are still valid but should produce a warning
    • a “linux-only” directory that has specific invalid tests that would only occur on a POSIX operating systems (tested on Linux)
    • a “windows-only” directory that has specific invalid tests that would only occur on Windows operating systems
  • Each of the lower level directories should contain a human-meaningful name indicating the aspect being tested

Running tests

If you have a bag validator which follows standard Unix convention, you can run all of the tests quickly using the provided test harness:

python test-harness -v -- ~/Projects/bagit-python/bagit.py --validate --quiet

Notes

  • Git’s core.autocrlf setting can cause bag validation failures by converting CRLF files automatically depending on your operating system and configuration. It is recommended that you disable it in your local checkout of this repository:

    git config core.autocrlf false

License

This repository is released as a public domain work of the U.S. Government.

Contributions are gladly accepted but must be released into the public domain.