Skip to content

Instantly share code, notes, and snippets.

@jperkin
Last active February 23, 2018 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jperkin/0a79fa6ea5efe7eca6dbf3832fd99778 to your computer and use it in GitHub Desktop.
Save jperkin/0a79fa6ea5efe7eca6dbf3832fd99778 to your computer and use it in GitHub Desktop.
pkgin test suite

Example output of pkgin test suite. It uses the Bash Automated Test Suite for writing and running the tests.

--<jperkin@roobarb.local>-</work/git/pkgin/tests>--
-> bmake
=> Generating /work/git/pkgin/tests/.packages/keep-1.0.tgz
=> Generating /work/git/pkgin/tests/.packages/upgrade-1.0.tgz
=> Generating /work/git/pkgin/tests/.packages/upgrade-2.0.tgz
=> Generating /work/git/pkgin/tests/.packages/conflict-1.0.tgz
=> Generating /work/git/pkgin/tests/.packages/pkgpath-1.0.tgz
=> Generating /work/git/pkgin/tests/.packages/pkgpath-2.0.tgz
=> Creating /work/git/pkgin/tests/.packages/pkg_summary.gz
=> Executing /work/git/pkgin/tests/tests.bats
 ✓ install keep-1.0
 ✓ install upgrade-1.0
 ✓ verify pkg_info (install initial packages)
 ✓ initial pkgin upgrade
 ✓ verify pkg_info (pkgin upgrade)
 ✓ attempt to install confict package
 ✓ verify pkg_install-err.log (conflict)
 ✓ remove upgrade package
 ✓ verify pkg_info (pkgin remove)
 ✓ install pkgpath-1.0
 ✓ attempt pkgpath-2.0 upgrade
 ✓ verify pkg_info (pkgpath upgrade)
 ✓ attempt pkgpath-2.0 install
 ✓ verify pkg_info (pkgpath install)

14 tests, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment