llvm/tests/libllvm-size/test.sh
Miloš Prchlík 77fe5f8af7 tests: fix libLLVM size threshold
Documentation says the threshold is 150MB, but the actual value was 200MB. Fixing this with a correct value, documentation (and previous commit message) are right here.

Thanks to vkadlcik@redhat.com for spotting the issue.
2022-03-29 07:27:29 +00:00

11 lines
462 B
Bash
Executable File

#!/bin/sh -eux
# There is a bug in the build process when it runs out of disk space
# while stripping binaries, which causes the strip to fail, but does
# not fail the build. This results in a libLLVM.so that is over 2GB
# which breaks the nightly compose. So this test checks that libLLVM.so
# is less than 150MB to ensure it was successfully stripped.
# https://bugzilla.redhat.com/show_bug.cgi?id=1793250
test $(stat -L -c %s $LIBLLVM_PATH) -lt 157286400