summaryrefslogtreecommitdiffstats
path: root/pts
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-20 16:20:17 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-20 16:20:17 -0400
commitdfff231200ca588f5832cc6ff09bac604651654e (patch)
tree8dae6ba11f0fc6b9357e73bea618f341e1ad7d33 /pts
parenta55c4d43c33f112d86962b76bc7a7b95bdb278b9 (diff)
downloadphoronix-test-suite-upstream-dfff231200ca588f5832cc6ff09bac604651654e.tar.gz
phoronix-test-suite-upstream-dfff231200ca588f5832cc6ff09bac604651654e.tar.xz
phoronix-test-suite-upstream-dfff231200ca588f5832cc6ff09bac604651654e.zip
pts: Add bork test profile for Java Bork File Encrypter test
Diffstat (limited to 'pts')
-rw-r--r--pts/test-profiles/bork.xml21
-rw-r--r--pts/test-resources/bork/downloads.xml9
-rwxr-xr-xpts/test-resources/bork/install.sh11
-rwxr-xr-xpts/test-resources/bork/post.sh3
-rwxr-xr-xpts/test-resources/bork/pre.sh4
-rw-r--r--pts/test-suites/java.xml5
6 files changed, 52 insertions, 1 deletions
diff --git a/pts/test-profiles/bork.xml b/pts/test-profiles/bork.xml
new file mode 100644
index 0000000..a89f6aa
--- /dev/null
+++ b/pts/test-profiles/bork.xml
@@ -0,0 +1,21 @@
+<PhoronixTestSuite>
+ <TestProfile>
+ <Version>1.0.0</Version>
+ <TestType>Processor</TestType>
+ <SoftwareType>Utility</SoftwareType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ <EnvironmentSize>0.93</EnvironmentSize>
+ <ProjectURL>http://www.sourceforge.net/projects/bork</ProjectURL>
+ <Extends>java-environment</Extends>
+ </TestProfile>
+ <TestInformation>
+ <Title>Bork File Encrypter</Title>
+ <Version>1.4</Version>
+ <TimesToRun>3</TimesToRun>
+ <ResultScale>Seconds</ResultScale>
+ <Proportion>LIB</Proportion>
+ <Description>Bork is a very small, cross-platform file encryption utility. It is written in Java and designed to be included along with the files it encrypts for long-term storage. This test measures the amount of time it takes to encrypt a sample file.</Description>
+ </TestInformation>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/bork/downloads.xml b/pts/test-resources/bork/downloads.xml
new file mode 100644
index 0000000..c742eea
--- /dev/null
+++ b/pts/test-resources/bork/downloads.xml
@@ -0,0 +1,9 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://internap.dl.sourceforge.net/sourceforge/bork/bork-1.4.zip, http://voxel.dl.sourceforge.net/sourceforge/bork/bork-1.4.zip, http://puzzle.dl.sourceforge.net/sourceforge/bork/bork-1.4.zip, http://surfnet.dl.sourceforge.net/sourceforge/bork/bork-1.4.zip</URL>
+ <MD5>8bbef446b89084142108888423310c72</MD5>
+ <FileSize>743599</FileSize>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/bork/install.sh b/pts/test-resources/bork/install.sh
new file mode 100755
index 0000000..7bdaff7
--- /dev/null
+++ b/pts/test-resources/bork/install.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+unzip -o bork-1.4.zip
+
+echo "#!/bin/sh
+cd bork-1.4/
+\$TIMER_START
+BORK_PASSWORD=phoronixtestsuite123 ./bork.sh ../encryptfile > \$LOG_FILE
+\$TIMER_STOP
+rm -f ../encryptfile.bork" > bork
+chmod +x bork
diff --git a/pts/test-resources/bork/post.sh b/pts/test-resources/bork/post.sh
new file mode 100755
index 0000000..2a5885d
--- /dev/null
+++ b/pts/test-resources/bork/post.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+rm -f encryptfile
diff --git a/pts/test-resources/bork/pre.sh b/pts/test-resources/bork/pre.sh
new file mode 100755
index 0000000..7c5f393
--- /dev/null
+++ b/pts/test-resources/bork/pre.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+dd if=/dev/urandom of=encryptfile bs=2048 count=1048576
+
diff --git a/pts/test-suites/java.xml b/pts/test-suites/java.xml
index eb85b72..851403f 100644
--- a/pts/test-suites/java.xml
+++ b/pts/test-suites/java.xml
@@ -1,6 +1,6 @@
<PhoronixTestSuite>
<SuiteInformation>
- <Version>1.0.0</Version>
+ <Version>1.0.1</Version>
<TestType>System</TestType>
<Title>Java</Title>
<Maintainer>Michael Larabel</Maintainer>
@@ -10,6 +10,9 @@
<Test>sunflow</Test>
</RunTest>
<RunTest>
+ <Test>bork</Test>
+ </RunTest>
+ <RunTest>
<Test>java-scimark2</Test>
<Arguments>TEST_FFT</Arguments>
<Description>FFT Performance</Description>