Run tests on OpenJDK 21

This commit is contained in:
Mikolaj Izdebski 2024-07-30 18:19:39 +02:00
parent 5cf9b6d352
commit f48a2e607d
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
summary: Lujavrite smoke test summary: Lujavrite smoke test
description: Test basic functionality of Lujavrite. description: Test basic functionality of Lujavrite.
require: java-17-openjdk-headless require: java-21-openjdk-headless

View File

@ -6,15 +6,15 @@ rlJournalStart
rlPhaseStartSetup rlPhaseStartSetup
rlAssertRpm lujavrite rlAssertRpm lujavrite
rlAssertRpm java-17-openjdk-headless rlAssertRpm java-21-openjdk-headless
export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk export JAVA_HOME=/usr/lib/jvm/jre-21-openjdk
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest rlPhaseStartTest
rlAssertExists "${JAVA_HOME}" rlAssertExists "${JAVA_HOME}"
rlAssertExists "${JAVA_HOME}/lib/server/libjvm.so" rlAssertExists "${JAVA_HOME}/lib/server/libjvm.so"
rlRun -s "lua smoke.lua" rlRun -s "lua smoke.lua"
rlAssertGrep "Java version is 17" $rlRun_LOG rlAssertGrep "Java version is 21" $rlRun_LOG
rlAssertGrep "foo is bar" $rlRun_LOG rlAssertGrep "foo is bar" $rlRun_LOG
rlAssertGrep "nil in Lua is null in Java" $rlRun_LOG rlAssertGrep "nil in Lua is null in Java" $rlRun_LOG
rlPhaseEnd rlPhaseEnd