24 lines
594 B
Bash
Executable File
24 lines
594 B
Bash
Executable File
#!/bin/bash
|
|
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
. /usr/share/beakerlib/beakerlib.sh
|
|
|
|
rlJournalStart
|
|
|
|
rlPhaseStartSetup
|
|
rlAssertRpm lujavrite
|
|
rlAssertRpm java-17-openjdk-headless
|
|
export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest
|
|
rlAssertExists "${JAVA_HOME}"
|
|
rlAssertExists "${JAVA_HOME}/lib/server/libjvm.so"
|
|
rlRun -s "lua smoke.lua"
|
|
rlAssertGrep "Java version is 17" $rlRun_LOG
|
|
rlAssertGrep "foo is bar" $rlRun_LOG
|
|
rlAssertGrep "nil in Lua is null in Java" $rlRun_LOG
|
|
rlPhaseEnd
|
|
|
|
rlJournalEnd
|
|
rlJournalPrintText
|