#!/bin/sh

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

set -e

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