From f1fb141ebf0bb08b37eb38fc1e3bc72e878e7301 Mon Sep 17 00:00:00 2001 From: Milos Prchlik Date: Dec 01 2021 15:35:03 +0000 Subject: tests: rename fmf files to match the llvm naming scheme for plans --- diff --git a/tests/build-gating-libomp.fmf b/tests/build-gating-libomp.fmf new file mode 100644 index 0000000..be680bc --- /dev/null +++ b/tests/build-gating-libomp.fmf @@ -0,0 +1,23 @@ +summary: libomp clang tests for build/PR gating +adjust: + - because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR." + when: >- + trigger is defined + and trigger != commit + and trigger != build + enabled: false +discover: + how: fmf + test: libomp +execute: + how: tmt +prepare: + # We want to make sure libomp is not already present on the system to ensure + # that clang pulls in the correct libomp dependencies when it is installed. + - name: Drop libomp + how: shell + script: | + dnf erase -y libomp libomp-devel clang clang-libs +provision: + hardware: + memory: ">= 4 GiB" diff --git a/tests/build-gating-pocl.fmf b/tests/build-gating-pocl.fmf new file mode 100644 index 0000000..82f93b3 --- /dev/null +++ b/tests/build-gating-pocl.fmf @@ -0,0 +1,25 @@ +summary: PoCL clang tests for build/PR gating +adjust: + - because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR." + when: >- + trigger is defined + and trigger != commit + and trigger != build + enabled: false +discover: + how: fmf + test: pocl +execute: + how: tmt +prepare: + # Programs linked against pocl should be able to run without clang installed, + # so when we run the test we want to make sure clang is not installed to + # verify we haven't introduced an implicit dependency on clang. + - name: Drop clang + how: shell + script: | + dnf erase -y clang + +provision: + hardware: + memory: ">= 4 GiB" diff --git a/tests/build-gating.fmf b/tests/build-gating.fmf new file mode 100644 index 0000000..4ae3f50 --- /dev/null +++ b/tests/build-gating.fmf @@ -0,0 +1,26 @@ +summary: Clang tests for build/PR gating +adjust: + - because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR." + when: >- + trigger is defined + and trigger != commit + and trigger != build + enabled: false +discover: + - name: Local tests + how: fmf + filter: "tag:-not-in-default" + - name: "Upstream LLVM integration test suite" + how: fmf + url: https://src.fedoraproject.org/rpms/llvm.git + ref: rawhide + test: integration-test-suite +execute: + how: tmt +prepare: + - name: packages + how: install + package: clang +provision: + hardware: + memory: ">= 4 GiB" diff --git a/tests/default.fmf b/tests/default.fmf deleted file mode 100644 index 21e0504..0000000 --- a/tests/default.fmf +++ /dev/null @@ -1,19 +0,0 @@ -summary: Clang tests -discover: - - name: Local tests - how: fmf - filter: "tag:-not-in-default" - - name: "Upstream LLVM integration test suite" - how: fmf - url: https://src.fedoraproject.org/rpms/llvm.git - ref: rawhide - test: integration-test-suite -execute: - how: tmt -prepare: - - name: packages - how: install - package: clang -provision: - hardware: - memory: ">= 4 GiB" diff --git a/tests/tests-libomp.fmf b/tests/tests-libomp.fmf deleted file mode 100644 index c80eb11..0000000 --- a/tests/tests-libomp.fmf +++ /dev/null @@ -1,16 +0,0 @@ -summary: libomp tests -discover: - how: fmf - test: libomp -execute: - how: tmt -prepare: - # We want to make sure libomp is not already present on the system to ensure - # that clang pulls in the correct libomp dependencies when it is installed. - - name: Drop libomp - how: shell - script: | - dnf erase -y libomp libomp-devel clang clang-libs -provision: - hardware: - memory: ">= 4 GiB" diff --git a/tests/tests-pocl.fmf b/tests/tests-pocl.fmf deleted file mode 100644 index 86c91a9..0000000 --- a/tests/tests-pocl.fmf +++ /dev/null @@ -1,18 +0,0 @@ -summary: pocl tests -discover: - how: fmf - test: pocl -execute: - how: tmt -prepare: - # Programs linked against pocl should be able to run without clang installed, - # so when we run the test we want to make sure clang is not installed to - # verify we haven't introduced an implicit dependency on clang. - - name: Drop clang - how: shell - script: | - dnf erase -y clang - -provision: - hardware: - memory: ">= 4 GiB"