Rewrite test using correct format.

This commit is contained in:
Tom Stellard 2018-06-14 04:53:39 +00:00
parent f917db2d93
commit db1e6f5a70
2 changed files with 12 additions and 20 deletions

View File

@ -1,19 +0,0 @@
---
- 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 -

View File

@ -1 +1,12 @@
- include: gcc-detector.yml
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- clang
- gcc-x86_64-linux-gnu
tests:
- rhbz#482491:
dir: ./
run: echo "int main(){}" | clang -x c -