summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/specviewperf10/install.sh
blob: 1cbe1e0336cd5db89e5a32dfad0a86eee3de525d (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh

tar -xvf SPECViewPerf10-Configure.tar.gz
tar -xvf SPECViewperf10.tgz

cp -f SPECViewPerf10-Configure SPECViewperf10/viewperf/viewperf10.0/src/Configure
chmod +x SPECViewperf10/viewperf/viewperf10.0/src/Configure
cd SPECViewperf10/viewperf/viewperf10.0/src/
./Configure
cd $1

echo "#!/bin/sh

cd SPECViewperf10/viewperf/viewperf10.0/

echo \"screenHeight  \$VIDEO_HEIGHT
screenWidth  \$VIDEO_WIDTH
threads \$NUM_CPU_CORES
\" > viewperf.config

case \"\$1\" in
\"3dsmax\")
	./Run_3dsmax.csh > /dev/null 2>&1
	cat results/3dsmax-04/*result.txt > \$LOG_FILE
	;;
\"catia\")
	./Run_catia.csh > /dev/null 2>&1
	cat results/catia-02/*result.txt > \$LOG_FILE
	;;
\"ensight\")
	./Run_ensight.csh > /dev/null 2>&1
	cat results/ensight-03/*result.txt > \$LOG_FILE
	;;
\"maya\")
	./Run_maya.csh > /dev/null 2>&1
	cat results/maya-02/*result.txt > \$LOG_FILE
	;;
\"proe\")
	./Run_proe.csh > /dev/null 2>&1
	cat results/proe-04/*result.txt > \$LOG_FILE
	;;
\"sw\")
	./Run_sw.csh > /dev/null 2>&1
	cat results/sw-01/*result.txt > \$LOG_FILE
	;;
\"tcvis\")
	./Run_tcvis.csh > /dev/null 2>&1
	cat results/tcvis-01/*result.txt > \$LOG_FILE
	;;
\"ugnx\")
	./Run_ugnx.csh > /dev/null 2>&1
	cat results/ugnx-01/*result.txt > \$LOG_FILE
	;;
esac" > specviewperf10
chmod +x specviewperf10