From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master

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

Signed-off-by: Waldemar Kozaczuk <jwkozac...@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'

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/00000000000088c0fe05a3b1e754%40google.com.

Reply via email to