Add test for rhbz1482491
This commit is contained in:
parent
47c2db1e9b
commit
f917db2d93
19
tests/gcc-detector.yml
Normal file
19
tests/gcc-detector.yml
Normal 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
1
tests/tests.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
- include: gcc-detector.yml
|
Loading…
Reference in New Issue
Block a user