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