From 69ffbbfd14b2de3a441764dbc0ef1dfd4b1e6284 Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Mon, 21 Feb 2022 13:57:19 +0100 Subject: [PATCH] tests: remove llvm-toolchain test as it has been superseeded by tests/toolchains --- tests/llvm-toolchain/main.fmf | 38 ----------------------------------- tests/llvm-toolchain/test.sh | 35 -------------------------------- 2 files changed, 73 deletions(-) delete mode 100644 tests/llvm-toolchain/main.fmf delete mode 100755 tests/llvm-toolchain/test.sh diff --git a/tests/llvm-toolchain/main.fmf b/tests/llvm-toolchain/main.fmf deleted file mode 100644 index b8542b0..0000000 --- a/tests/llvm-toolchain/main.fmf +++ /dev/null @@ -1,38 +0,0 @@ -# TODO REVIEW: better summary -summary: "" -test: "$WITH_SCL ./test.sh" -require: - - glibc-devel - - glibc-static - - gcc -adjust: - # Common requirements when LLVM is not SCL-ized - - require+: - - clang - - lld - - compiler-rt - when: "collection is not defined" - - # Requirements for SCL-ized LLVM - - require+: - - llvm-toolset-13.0-clang - - llvm-toolset-13.0-lld - - llvm-toolset-13.0-compiler-rt - when: "collection == llvm-toolset-13.0" - - - environment+: - CXXLIB: "libc++" - require+: - - libcxx-devel - - libcxx-static - when: "distro == fedora" - because: testing against libcxx package in Fedora - - - environment+: - CXXLIB: "libstdc++" - require: - - libstdc++ - when: >- - distro == rhel - or distro == centos - because: testing against libstdc++ package in RHEL as libcxx is not shipped with RHEL diff --git a/tests/llvm-toolchain/test.sh b/tests/llvm-toolchain/test.sh deleted file mode 100755 index 2b2ef02..0000000 --- a/tests/llvm-toolchain/test.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -eux - -# Tests for using a full LLVM toolchain: clang + compiler-rt + libcxx + lld - -set pipefail - -if [ -z "${CXXLIB:-}" ]; then - echo "CXXLIB variable is a required input but it's not specified!" - echo "Test metadata should have picked a proper value, depending on distro." - exit 1 -fi - -# Test compile a C program. -cat << EOF | \ - clang -fuse-ld=lld -rtlib=compiler-rt -x c - && \ - ./a.out | grep 'Hello World' - -#include -int main(int argc, char **argv) { - printf("Hello World\n"); - return 0; -} -EOF - -# Test compile a C++ program. -cat << EOF | \ - clang++ -x c++ -fuse-ld=lld -rtlib=compiler-rt -stdlib="$CXXLIB" - && \ - ./a.out | grep 'Hello World' - -#include -int main(int argc, char **argv) { - std::cout << "Hello World\n"; - return 0; -} -EOF