Backport tests from Fedora
This commit is contained in:
parent
c6528de993
commit
2adc12deae
|
@ -1,17 +1,5 @@
|
||||||
summary: Basic smoke test
|
summary: Basic smoke test
|
||||||
prepare:
|
|
||||||
how: install
|
|
||||||
package:
|
|
||||||
- java-1.8.0-openjdk-devel
|
|
||||||
- xmvn-tools
|
|
||||||
discover:
|
discover:
|
||||||
how: shell
|
how: fmf
|
||||||
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:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
summary: jakarta-activation smoke test
|
||||||
|
description: |
|
||||||
|
Test basic functionality of jakarta-activation.
|
||||||
|
require:
|
||||||
|
- jakarta-activation
|
||||||
|
- java-21-openjdk-devel
|
||||||
|
- xmvn-tools
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Author: Marian Koncek <mkoncek@redhat.com>
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
|
||||||
|
rlPhaseStartTest "compile Smoke.java and run it"
|
||||||
|
CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api)"
|
||||||
|
export CLASSPATH
|
||||||
|
rlRun "/usr/lib/jvm/java-21-openjdk/bin/javac Smoke.java"
|
||||||
|
rlRun -s "/usr/lib/jvm/java-21-openjdk/bin/java -cp \"${CLASSPATH}:plans\" Smoke"
|
||||||
|
rlAssertGrep "jakarta.activation.MimeType" $rlRun_LOG
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlJournalEnd
|
||||||
|
rlJournalPrintText
|
|
@ -0,0 +1,5 @@
|
||||||
|
contact: Marian Koncek <mkoncek@redhat.com>
|
||||||
|
framework: beakerlib
|
||||||
|
test: ./runtest.sh
|
||||||
|
tier: 0
|
||||||
|
component: jakarta-activation
|
Loading…
Reference in New Issue