From 034c5c433329fe521d6b5308bbbede16b21c699c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Apr 30 2020 17:45:03 +0000 Subject: Add binutils-plugin-ar test The test checks that ar is able to load the LLVMgold.so plugin and create an archive with a valid symbol table from llvm bitcode objects. --- diff --git a/binutils-plugin-ar/runtest.sh b/binutils-plugin-ar/runtest.sh new file mode 100755 index 0000000..d18ab53 --- /dev/null +++ b/binutils-plugin-ar/runtest.sh @@ -0,0 +1,5 @@ +set -exo pipefail + +echo "void lto_function(){}" | clang -flto -O2 -c -x c -o foo.o - +ar crs foo.a foo.o +readelf -c foo.a | grep lto_function diff --git a/tests-llvm-libs.yml b/tests-llvm-libs.yml new file mode 100644 index 0000000..1f06af8 --- /dev/null +++ b/tests-llvm-libs.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - clang + - binutils + - llvm + - llvm-libs + tests: + - binutils-plugin-ar