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