[COMMIT osv-apps master] specjvm: added module.py with number of example test runs

3 views
Skip to first unread message

Commit Bot

unread,
Apr 20, 2020, 1:09:34 AM4/20/20
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

specjvm: added module.py with number of example test runs

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/specjvm/Makefile b/specjvm/Makefile
--- a/specjvm/Makefile
+++ b/specjvm/Makefile
@@ -3,3 +3,6 @@ module: SPECjvm2008

SPECjvm2008:
./GET
+
+clean:
+ rm -rf SPECjvm2008/ SPECjvm2008_1_01_setup.jar
diff --git a/specjvm/README.md b/specjvm/README.md
--- a/specjvm/README.md
+++ b/specjvm/README.md
@@ -0,0 +1,2 @@
+For more info read https://www.spec.org/jvm2008/.
+Also here http://osv.io/specjvm-benchmarks
diff --git a/specjvm/module.py b/specjvm/module.py
--- a/specjvm/module.py
+++ b/specjvm/module.py
@@ -0,0 +1,14 @@
+from osv.modules import api
+
+api.require('java')
+
+#Run with --help to see what all options mean
+#Warmup 30s, 1 iteration of 30s with 2 benchmark threads
+common_cmd = '/usr/bin/java -Xms1400m -Xmx1400m -jar specjvm.jar -wt 30s -it 30s -bt 2 -i 1 -ikv -ict -ctf false -chf false -crf false'
+
+all = api.run(cmdline='%s compress crypto serial sunflow scimark!' % common_cmd)
+
+derby = api.run(cmdline='%s derby!' % common_cmd) #Need ZFS image with 1GB space at least
+xml = api.run(cmdline='%s xml!' % common_cmd) #Need ZFS image
+
+default = api.run(cmdline='%s sunflow!' % common_cmd)
diff --git a/specjvm/mpm/package.yaml b/specjvm/mpm/package.yaml
--- a/specjvm/mpm/package.yaml
+++ b/specjvm/mpm/package.yaml
@@ -0,0 +1,5 @@
+title: SPECjvm2008
+version: 1.0.1
+require:
+- osv.openjdk8-from-host
+- osv.libz
diff --git a/specjvm/test.sh b/specjvm/test.sh
--- a/specjvm/test.sh
+++ b/specjvm/test.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+THIS_DIR=$(readlink -f $(dirname $0))
+CMDLINE=$($THIS_DIR/../cmdline.sh $THIS_DIR)
+
+$THIS_DIR/../../scripts/tests/test_app.py -e "$CMDLINE" --line 'Valid run'
Reply all
Reply to author
Forward
0 new messages