krb5/krb5-tests
Julien Rische 95288a2fb9 Use TMT for gating tests
Signed-off-by: Julien Rische <jrische@redhat.com>
2022-12-01 15:16:23 +01:00

15 lines
396 B
Bash

#!/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