diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-29 11:23:21 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-29 11:23:21 -0400 |
commit | d2993872f1e7598e90e22cada8d58fabcb6443c1 (patch) | |
tree | e104a8cca259dcce012c95f3a7d311c1f9981fdd /pts/test-resources/memory-bandwidth/install.sh | |
parent | d8f940cde35c8423043bd37c58f00f57e901e66b (diff) | |
download | phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.gz phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.xz phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.zip |
Change benchmark-profiles/, benchmark-resources/, and benchmark-suites/ to test-profiles/, test-resources/, and test-suites/
Diffstat (limited to 'pts/test-resources/memory-bandwidth/install.sh')
-rw-r--r-- | pts/test-resources/memory-bandwidth/install.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pts/test-resources/memory-bandwidth/install.sh b/pts/test-resources/memory-bandwidth/install.sh new file mode 100644 index 0000000..5635a44 --- /dev/null +++ b/pts/test-resources/memory-bandwidth/install.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +cd $1 + +tar -xvf bandwidth-0.13.tar.gz + +echo "#!/bin/sh + +if [ ! -f \$THIS_RUN_TIME.result ] + then + rm -f *.result + ./bandwidth > \$THIS_RUN_TIME.result +fi + +case \"\$1\" in +\"TEST_L2READ\") + cat \$THIS_RUN_TIME.result | grep \"L2 cache sequential read\" + ;; +\"TEST_L2WRITE\") + cat \$THIS_RUN_TIME.result | grep \"L2 cache sequential write\" + ;; +\"TEST_READ\") + cat \$THIS_RUN_TIME.result | grep \"Main memory sequential read\" + ;; +\"TEST_WRITE\") + cat \$THIS_RUN_TIME.result | grep \"Main memory sequential write\" + ;; +esac +" > memory-bandwidth +chmod +x memory-bandwidth + + +cd bandwidth-0.13/ +make +ln bandwidth ../ + |