Simplify test plans

Use inheritance to merge similar test plans.
This commit is contained in:
Mikolaj Izdebski 2022-08-18 10:10:38 +02:00
parent 856dee8844
commit bd5e1ed4ab
9 changed files with 60 additions and 66 deletions

View File

@ -5,9 +5,9 @@ decision_contexts:
- bodhi_update_push_testing - bodhi_update_push_testing
- bodhi_update_push_stable - bodhi_update_push_stable
rules: rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk8.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke/jdk8.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk11.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke/jdk11.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke-jdk17.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke/jdk17.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk8.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages/jdk8.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk11.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages/jdk11.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages-jdk17.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages/jdk17.functional}

View File

@ -1,12 +0,0 @@
summary:
Run javapackages-specific tests - OpenJDK 11
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk17
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests
execute:
how: tmt

View File

@ -1,12 +0,0 @@
summary:
Run javapackages-specific tests - OpenJDK 17
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests
execute:
how: tmt

View File

@ -1,12 +0,0 @@
summary:
Run javapackages-specific tests - OpenJDK 8
prepare:
how: install
exclude:
- maven-openjdk11
- maven-openjdk17
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests
execute:
how: tmt

29
plans/javapackages.fmf Normal file
View File

@ -0,0 +1,29 @@
discover:
how: fmf
url: https://pagure.io/javapackages-validator-tests
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk17
execute:
how: tmt
/jdk8:
summary: Run javapackages-specific tests (OpenJDK 8)
prepare+:
exclude-:
- maven-openjdk8
/jdk11:
summary: Run javapackages-specific tests (OpenJDK 11)
prepare+:
exclude-:
- maven-openjdk11
/jdk17:
summary: Run javapackages-specific tests (OpenJDK 17)
prepare+:
exclude-:
- maven-openjdk17

View File

@ -1,8 +0,0 @@
summary: Basic smoke test - OpenJDK 11
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk17
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar

View File

@ -1,8 +0,0 @@
summary: Basic smoke test - OpenJDK 17
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar

View File

@ -1,8 +0,0 @@
summary: Basic smoke test - OpenJDK 8
prepare:
how: install
exclude:
- maven-openjdk11
- maven-openjdk17
execute:
script: mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar

25
plans/smoke.fmf Normal file
View File

@ -0,0 +1,25 @@
summary: Basic smoke test - OpenJDK 8
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk17
execute:
script:
- mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar
/jdk8:
prepare+:
exclude-:
- maven-openjdk8
/jdk11:
prepare+:
exclude-:
- maven-openjdk11
/jdk17:
prepare+:
exclude-:
- maven-openjdk17