import RHEL 10 Beta lujavrite-1.0.2-5.el10
This commit is contained in:
parent
de111cb05f
commit
fab43c438c
@ -1 +0,0 @@
|
|||||||
1
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
lujavrite-1.0.2.tar.gz
|
@ -1,7 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-10
|
|
||||||
decision_contexts:
|
|
||||||
- osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: lujavrite
|
Name: lujavrite
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 7%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Lua library for calling Java code
|
Summary: Lua library for calling Java code
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/mizdebsk/lujavrite
|
URL: https://github.com/mizdebsk/lujavrite
|
||||||
@ -37,14 +37,6 @@ lua test.lua
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.0.2-7
|
|
||||||
- Bump release for October 2024 mass rebuild:
|
|
||||||
Resolves: RHEL-64018
|
|
||||||
|
|
||||||
* Sat Sep 21 2024 Andrew Hughes <gnu.andrew@redhat.com> - 1.0.2-6
|
|
||||||
- Rebuilt with java-21-openjdk as default JDK:
|
|
||||||
https://issues.redhat.com/browse/RHEL-34597
|
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.2-5
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.2-5
|
||||||
- Bump release for June 2024 mass rebuild
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
summary: Run smoke tests from dist-git
|
|
||||||
discover:
|
|
||||||
how: fmf
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
@ -1,4 +0,0 @@
|
|||||||
contact: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
||||||
framework: beakerlib
|
|
||||||
test: ./runtest.sh
|
|
||||||
tier: 0
|
|
@ -1,3 +0,0 @@
|
|||||||
summary: Lujavrite smoke test
|
|
||||||
description: Test basic functionality of Lujavrite.
|
|
||||||
require: java-21-openjdk-headless
|
|
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
||||||
. /usr/share/beakerlib/beakerlib.sh
|
|
||||||
|
|
||||||
rlJournalStart
|
|
||||||
|
|
||||||
rlPhaseStartSetup
|
|
||||||
rlAssertRpm lujavrite
|
|
||||||
rlAssertRpm java-21-openjdk-headless
|
|
||||||
export JAVA_HOME=/usr/lib/jvm/jre-21-openjdk
|
|
||||||
rlPhaseEnd
|
|
||||||
|
|
||||||
rlPhaseStartTest
|
|
||||||
rlAssertExists "${JAVA_HOME}"
|
|
||||||
rlAssertExists "${JAVA_HOME}/lib/server/libjvm.so"
|
|
||||||
rlRun -s "lua smoke.lua"
|
|
||||||
rlAssertGrep "Java version is 21" $rlRun_LOG
|
|
||||||
rlAssertGrep "foo is bar" $rlRun_LOG
|
|
||||||
rlAssertGrep "nil in Lua is null in Java" $rlRun_LOG
|
|
||||||
rlPhaseEnd
|
|
||||||
|
|
||||||
rlJournalEnd
|
|
||||||
rlJournalPrintText
|
|
@ -1,37 +0,0 @@
|
|||||||
local lujavrite = require "lujavrite"
|
|
||||||
|
|
||||||
-- Determine Java home to use
|
|
||||||
java_home = os.getenv("JAVA_HOME")
|
|
||||||
if java_home == nil then
|
|
||||||
java_home = "/usr/lib/jvm/jre"
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Initialize JVM
|
|
||||||
lujavrite.init(java_home .. "/lib/server/libjvm.so", "-ea", "-esa")
|
|
||||||
|
|
||||||
-- System.getProperty(key)
|
|
||||||
function get_property(key)
|
|
||||||
return lujavrite.call(
|
|
||||||
"java/lang/System", "getProperty",
|
|
||||||
"(Ljava/lang/String;)Ljava/lang/String;",
|
|
||||||
key
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- System.setProperty(key, value)
|
|
||||||
function set_property(key, value)
|
|
||||||
return lujavrite.call(
|
|
||||||
"java/lang/System", "setProperty",
|
|
||||||
"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;",
|
|
||||||
key, value
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
local java_version = get_property("java.version")
|
|
||||||
print("Java version is " .. java_version)
|
|
||||||
|
|
||||||
set_property("foo", "bar")
|
|
||||||
print("foo is " .. get_property("foo"))
|
|
||||||
|
|
||||||
local java_nil = lujavrite.call("java/lang/String", "valueOf", "(Ljava/lang/Object;)Ljava/lang/String;", nil)
|
|
||||||
print("nil in Lua is " .. java_nil .. " in Java")
|
|
Loading…
Reference in New Issue
Block a user