tests: remove llvm-toolchain test as it has been superseeded by tests/toolchains
This commit is contained in:
parent
806afe0a28
commit
69ffbbfd14
@ -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
|
|
Loading…
Reference in New Issue
Block a user