2023-03-03 11:53:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh
|
|
|
|
|
|
|
|
rlJournalStart
|
|
|
|
|
|
|
|
rlPhaseStartSetup
|
|
|
|
rlAssertRpm lujavrite
|
2024-07-30 16:19:39 +00:00
|
|
|
rlAssertRpm java-21-openjdk-headless
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/jre-21-openjdk
|
2023-03-03 11:53:49 +00:00
|
|
|
rlPhaseEnd
|
|
|
|
|
|
|
|
rlPhaseStartTest
|
|
|
|
rlAssertExists "${JAVA_HOME}"
|
|
|
|
rlAssertExists "${JAVA_HOME}/lib/server/libjvm.so"
|
|
|
|
rlRun -s "lua smoke.lua"
|
2024-07-30 16:19:39 +00:00
|
|
|
rlAssertGrep "Java version is 21" $rlRun_LOG
|
2023-03-03 11:53:49 +00:00
|
|
|
rlAssertGrep "foo is bar" $rlRun_LOG
|
|
|
|
rlAssertGrep "nil in Lua is null in Java" $rlRun_LOG
|
|
|
|
rlPhaseEnd
|
|
|
|
|
|
|
|
rlJournalEnd
|
|
|
|
rlJournalPrintText
|