#!/bin/sh

# run the sample test suite in sopv-doc against artifacts createsd
# from the specified "sop" implementation

cd "${AUTOPKGTEST_ARTIFACTS:-$(mktemp -d)}"
printf 'Testing sopv-gpgv in %s against artifacts from %s\n' "$(pwd)" "$1"
/usr/share/doc/sopv-doc/examples/setup-sopv-test "$1"
/usr/share/doc/sopv-doc/examples/sopv-test sopv-gpgv
