From 0d5a2985b7d61155d4617918302107f0a81c8b90 Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Aug 19 2022 09:48:59 +0000 Subject: test if build_compat would work as a gating test --- diff --git a/tests/build-compat/main.fmf b/tests/build-compat/main.fmf index 7e0a3d3..176ec94 100644 --- a/tests/build-compat/main.fmf +++ b/tests/build-compat/main.fmf @@ -1,3 +1,6 @@ summary: Make sure rebuilding LLVM still works with the new LLVM test: "$WITH_SCL ./test.sh" -enabled: false +enabled: true +duration: 5h +require: + - mock \ No newline at end of file diff --git a/tests/build-compat/test.sh b/tests/build-compat/test.sh index 04a97b2..a6855eb 100755 --- a/tests/build-compat/test.sh +++ b/tests/build-compat/test.sh @@ -1,11 +1,19 @@ #!/bin/sh -eux +# Rough guess of how much the test would take +date + 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 +mockret=$? + +# Rough guess of how much the test would take +date + +if [ $mockret -ne 0 ]; then cat root.log cat build.log exit 1