llvm/tests/build-compat/runtest.sh
David Abdurachmanov 3109a5bb6e
Sync with llvm8.0 spec file
Original commit:

77699b4333

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
2019-08-22 20:05:52 -07: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