Add smoke tests

This commit is contained in:
Marian Koncek 2023-03-17 14:27:31 +01:00
parent 2ceee22365
commit 828c6b803e
3 changed files with 33 additions and 0 deletions

View File

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

15
plans/Smoke.java Normal file
View File

@ -0,0 +1,15 @@
import jakarta.activation.DataHandler;
import jakarta.activation.DataSource;
import jakarta.activation.MimeType;
import jakarta.activation.MimeTypeParseException;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(DataHandler.class.getCanonicalName());
System.out.println(DataSource.class.getCanonicalName());
System.out.println(MimeType.class.getCanonicalName());
System.out.println(MimeTypeParseException.class.getCanonicalName());
}
}

17
plans/smoke.fmf Normal file
View File

@ -0,0 +1,17 @@
summary: Basic smoke test
prepare:
how: install
package:
- java-1.8.0-openjdk-devel
- xmvn-tools
discover:
how: shell
tests:
- name: /smoke/classpath-import
test: |
CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api)"
export CLASSPATH
/usr/lib/jvm/java-1.8.0-openjdk/bin/javac plans/Smoke.java
/usr/lib/jvm/java-1.8.0-openjdk/bin/java -cp "${CLASSPATH}:plans" Smoke
execute:
how: tmt