From f917db2d935f9e10e2e2f639f22b806bf274170e Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 19 Jan 2018 19:33:29 +0000 Subject: [PATCH] Add test for rhbz1482491 --- tests/gcc-detector.yml | 19 +++++++++++++++++++ tests/tests.yml | 1 + 2 files changed, 20 insertions(+) create mode 100644 tests/gcc-detector.yml create mode 100644 tests/tests.yml diff --git a/tests/gcc-detector.yml b/tests/gcc-detector.yml new file mode 100644 index 0000000..91d42a8 --- /dev/null +++ b/tests/gcc-detector.yml @@ -0,0 +1,19 @@ +--- +- hosts: localhost + vars: + - artifacts: ./artifacts + tags: + - classic + tasks: + - name: Test block + block: + - name: Install clang + dnf: + name: clang + state: present + - name: Install cross-gcc + dnf: + name: gcc-x86_64-linux-gnu + state: present + - name: Test that clang uses the correct gcc toolchain when cross-gcc is installed. + shell: echo "int main(){}" | clang -x c - diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f307603 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- include: gcc-detector.yml