summaryrefslogtreecommitdiffstats
path: root/pts/benchmark-resources/specviewperf9/install.sh
blob: 4c3e6dc9cbd4c5a3d63dc14972ef8da5f0cfdec0 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#!/bin/sh

cd $1

if [ ! -f SPECViewPerf9-Configure ]
 
	then
     wget http://www.phoronix-test-suite.com/benchmark-files/SPECViewPerf9-Configure -O SPECViewPerf9-Configure
fi

if [ ! -f SPECViewperf9.0.3.tar.gz ]
 
	then
     wget ftp://spec.unipv.it/dist/gpc/opc/viewperf/unix/SPECViewperf9.0.3.tar.gz -O SPECViewperf9.0.3.tar.gz
fi


tar -xvf SPECViewperf9.0.3.tar.gz
cp -f SPECViewPerf9-Configure SPECViewperf9.0/src/Configure
chmod +x SPECViewperf9.0/src/Configure
cd SPECViewperf9.0/src
./Configure
cd ../..

echo "#!/bin/sh

cd SPECViewperf9.0/

if [ ! -e sum_results ]
	then
    mkdir sum_results
fi

if [ ! -e backup_results ]
	then
    mkdir backup_results
fi

case \"\$1\" in
\"3dsmax\")
	if [ ! -e sum_results/3dsmax ]
	then
	    mkdir sum_results/3dsmax
	fi

	./Run_Viewset.csh 3dsmax-04 3dsmax results

	grep \"Mean\" sum_results/3dsmax/summary.txt
	;;
\"catia\")
	if [ ! -e sum_results/catia ]
	then
	    mkdir sum_results/catia
	fi

	./Run_Viewset.csh catia-02 catia results

	grep \"Mean\" sum_results/catia/summary.txt
	;;
\"ensight\")
	if [ ! -e sum_results/ensight ]
	then
	    mkdir sum_results/ensight
	fi

	./Run_Viewset.csh ensight-03 ensight results

	grep \"Mean\" sum_results/ensight/summary.txt
	;;
\"light\")
	if [ ! -e sum_results/light ]
	then
	    mkdir sum_results/light
	fi

	./Run_Viewset.csh light-08 light results

	grep \"Mean\" sum_results/light/summary.txt
	;;
\"maya\")
	if [ ! -e sum_results/maya ]
	then
	    mkdir sum_results/maya
	fi

	./Run_Viewset.csh maya-02 maya results

	grep \"Mean\" sum_results/maya/summary.txt
	;;
\"proe\")
	if [ ! -e sum_results/proe ]
	then
	    mkdir sum_results/proe
	fi

	./Run_Viewset.csh proe-04 proe results

	grep \"Mean\" sum_results/proe/summary.txt
	;;
\"sw\")
	if [ ! -e sum_results/sw ]
	then
	    mkdir sum_results/sw
	fi

	./Run_Viewset.csh sw-01 sw results

	grep \"Mean\" sum_results/sw/summary.txt
	;;
\"ugnx\")
	if [ ! -e sum_results/ugnx ]
	then
	    mkdir sum_results/ugnx
	fi

	./Run_Viewset.csh ugnx-01 ugnx results

	grep \"Mean\" sum_results/ugnx/summary.txt
	;;
\"tcvis\")
	if [ ! -e sum_results/tcvis ]
	then
	    mkdir sum_results/tcvis
	fi

	./Run_Viewset.csh tcvis-01 tcvis results

	grep \"Mean\" sum_results/tcvis/summary.txt
	;;
esac
" > specviewperf9
chmod +x specviewperf9