llvm/tests/build-compat/runtest.sh
Petr Šabata cd7e47d883 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/llvm#f5cf5703840587f202de6d09456fd611b5bb8b48
2020-10-15 18:27:01 +02:00

17 lines
304 B
Bash
Executable File

#!/bin/bash
set -ex
dnf download --disablerepo=* --enablerepo=test-llvm --source llvm
# The src.rpm is available in the directory the test run from.
set +e
mock --resultdir=. --old-chroot --with compat_build --rebuild *.src.rpm
if [ $? -ne 0 ]; then
cat root.log
cat build.log
exit 1
fi
exit 0