Add smoke tests
This commit is contained in:
parent
2ceee22365
commit
828c6b803e
@ -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
15
plans/Smoke.java
Normal 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
17
plans/smoke.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user