Improve smoke tests

This commit is contained in:
Mikolaj Izdebski 2022-08-18 11:25:01 +02:00
parent bd5e1ed4ab
commit 9cf3d9a90b

View File

@ -1,25 +1,41 @@
summary: Basic smoke test - OpenJDK 8
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
- maven-openjdk17
discover:
how: shell
tests:
- name: /smoke/ensure-single-jdk
test: "! rpm -qa | grep ^java- | grep -v ^java-${JDK_VERSION}-openjdk-"
- name: /smoke/show-version
test: mvn -v
- name: /smoke/dependency-get
test: rm -rf $HOME/.m2 && mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar
execute:
script:
- mvn -V dependency:get -Dartifact=junit:junit:4.12 && stat $HOME/.m2/repository/junit/junit/4.12/junit-4.12.jar
how: tmt
/jdk8:
summary: Basic smoke tests (OpenJDK 8)
environment:
JDK_VERSION: 1.8.0
prepare+:
exclude-:
- maven-openjdk8
/jdk11:
summary: Basic smoke tests (OpenJDK 11)
environment:
JDK_VERSION: 11
prepare+:
exclude-:
- maven-openjdk11
/jdk17:
summary: Basic smoke tests (OpenJDK 17)
environment:
JDK_VERSION: 17
prepare+:
exclude-:
- maven-openjdk17