summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/ramspeed/install.sh
blob: b4f4da25bb2db99cc4d420aee0289f6ead653e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

tar -xvf ramspeed-2.5.2.tar.gz

echo "#!/bin/sh

rm -f *.result
./ramspeed \$@ > \$LOG_FILE.result 2>&1

case \"\$1\" in
\"COPY\")
	cat \$LOG_FILE.result | grep \"Copy\" > \$LOG_FILE
	;;
\"SCALE\")
	cat \$LOG_FILE.result | grep \"Scale\" > \$LOG_FILE
	;;
\"ADD\")
	cat \$LOG_FILE.result | grep \"Add\" > \$LOG_FILE
	;;
\"TRIAD\")
	cat \$LOG_FILE.result | grep \"Triad\" > \$LOG_FILE
	;;
\"AVERAGE\")
	cat \$LOG_FILE.result | grep \"AVERAGE\" > \$LOG_FILE
	;;
esac
" > ramspeed-benchmark
chmod +x ramspeed-benchmark

cd ramspeed-2.5.2/
cat build.sh | grep -v "read ANS" > build_pts.sh
chmod +x build_pts.sh
./build_pts.sh
ln ramspeed ../