From 6564e5278d5700359e66f7b24de51c97d6711bba Mon Sep 17 00:00:00 2001 From: Milos Prchlik Date: Nov 16 2021 15:26:59 +0000 Subject: tests: rename default plan to build-gating to better eflect its current purpose My expectation is that in the future, more tests will land in this git, and not all of them would be useful in gating time. AFAIK, CI systems do run everything they can, therefore adding `when` to control when the plan is executed - `is not defined` bit should allow anyone to run it manually, while the rest of the condition should limit its presence to gating events. --- diff --git a/tests/build-gating.fmf b/tests/build-gating.fmf new file mode 100644 index 0000000..962adc4 --- /dev/null +++ b/tests/build-gating.fmf @@ -0,0 +1,19 @@ +summary: LLVM 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 +execute: + how: tmt +prepare: + - name: packages + how: install + package: llvm +provision: + hardware: + memory: ">= 4 GiB" diff --git a/tests/default.fmf b/tests/default.fmf deleted file mode 100644 index dcffcb1..0000000 --- a/tests/default.fmf +++ /dev/null @@ -1,12 +0,0 @@ -summary: All available LLVM tests -discover: - how: fmf -execute: - how: tmt -prepare: - - name: packages - how: install - package: llvm -provision: - hardware: - memory: ">= 4 GiB"