krb5/krb5-tests

15 lines
396 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
export RPM_PACKAGE_NAME={{ name }}
export RPM_PACKAGE_VERSION={{ version }}
export RPM_PACKAGE_RELEASE={{ release }}
export RPM_ARCH={{ arch }}
testdir="$(mktemp -d)"
trap "rm -rf ${testdir}" EXIT
cp -rp /usr/share/{{ name }}-tests "${testdir}/"
make -C "${testdir}/{{ name }}-tests" $(rpm --eval '%{_smp_mflags}')
keyctl session - make -C "${testdir}/{{ name }}-tests" check