#152 tests: remove llvm-toolchain test as it has been superseeded by tests/toolchains
Merged 2 years ago by sergesanspaille. Opened 2 years ago by jcheca.
rpms/ jcheca/clang tests-remove-llvm-toolchain  into  rawhide

@@ -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

@@ -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<stdio.h>

- 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 <iostream>

- int main(int argc, char **argv) {

-   std::cout << "Hello World\n";

-   return 0;

- }

- EOF

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Build succeeded.

rebased onto 69ffbbf

2 years ago

Pull-Request has been merged by sergesanspaille

2 years ago

Build succeeded.