krb5/krb5-tests

18 lines
493 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 }}
export RPM_BUILD_NCPUS="$(getconf _NPROCESSORS_ONLN)"
testdir="$(mktemp -d)"
trap "rm -rf ${testdir}" EXIT
build_flags="$(eval "echo $(rpm --eval '%{_smp_mflags}')")"
cp -rp /usr/share/{{ name }}-tests "${testdir}/"
make -C "${testdir}/{{ name }}-tests" $build_flags
keyctl session - make -C "${testdir}/{{ name }}-tests" check