1ed0e3a2d8
- Fix double free in klist's show_ccache() Resolves: rhbz#2257301 - Store krb5-tests files in architecture-specific directories Resolves: rhbz#2244601 Signed-off-by: Julien Rische <jrische@redhat.com>
19 lines
581 B
Bash
19 lines
581 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 }}
|
|
export RPM_BUILD_NCPUS="$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
testdir="$(mktemp -d)"
|
|
trap "rm -rf ${testdir}" EXIT
|
|
|
|
build_flags="$(eval "echo $(rpm --eval '%{_smp_mflags}')")"
|
|
|
|
mkdir "${testdir}/{{ name }}-tests"
|
|
cp -rp /usr/share/{{ name }}-tests/{{ arch }} "${testdir}/{{ name }}-tests/"
|
|
make -C "${testdir}/{{ name }}-tests/{{ arch }}/" $build_flags
|
|
keyctl session - make -C "${testdir}/{{ name }}-tests/{{ arch }}/" check
|