Add test for rhbz1482491

This commit is contained in:
Tom Stellard 2018-01-19 19:33:29 +00:00
parent 47c2db1e9b
commit f917db2d93
2 changed files with 20 additions and 0 deletions

19
tests/gcc-detector.yml Normal file
View File

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

1
tests/tests.yml Normal file
View File

@ -0,0 +1 @@
- include: gcc-detector.yml