From 33a9d21662abab18882715ae5c4933495b97364f Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 5 Apr 2021 21:54:55 +0000 Subject: [PATCH] Import tests from tests/llvm repository It's not necessary to store the tests in a separate repository, since other packages can just reference the tests in this repo. --- tests/binutils-plugin-ar/runtest.sh | 5 +++++ tests/tests.yml | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 tests/binutils-plugin-ar/runtest.sh diff --git a/tests/binutils-plugin-ar/runtest.sh b/tests/binutils-plugin-ar/runtest.sh new file mode 100755 index 0000000..d18ab53 --- /dev/null +++ b/tests/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/tests.yml b/tests/tests.yml index b5f59e9..d917d74 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -9,9 +9,6 @@ - cargo - clang - binutils - repositories: - - repo: "https://src.fedoraproject.org/tests/llvm.git" - dest: "llvm" tests: - regression-tests - rust-sanity: @@ -31,4 +28,4 @@ # FIXME: This fails, because the CI system has a hard-coded timeout of 4 # hours. #- build-compat - - llvm/binutils-plugin-ar + - binutils-plugin-ar