forked from diegotibi/Signal-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·257 lines (207 loc) · 15.3 KB
/
test.sh
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
#!/bin/bash
echo "*************************************************************************"
echo "Set DEM directory..."
demDir=data
echo "DEM directory: ${demDir}"
echo "Prepare test directory..."
testDir=output/tests
echo "test directory: ${testDir}"
if [ -d "${testDir}" ];
then
rm -R ${testDir};
fi;
mkdir ${testDir};
cp output/OpenLayers/Tests/Regacom_Tests_WebMercator.html ${testDir}/
echo "*************************************************************************"
echo "Running 50cm LIDAR test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverLIDAR -lid data/sk3587_50cm.asc -lat 53.383 -lon -1.468 -txh 8 -f 446 -erp 1 -rxh 2 -m -dbm -rt -90 -o ${testDir}/1_Original -R 0.5 -t
echo "Converting to PNG..."
convert ${testDir}/1_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/1_Original.png
rm ${testDir}/1_Original.ppm
rm ${testDir}/1_Original.*cf
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverLIDAR -lid data/sk3587_50cm.asc -lat 53.383 -lon -1.468 -txh 8 -f 446 -erp 1 -rxh 2 -m -dbm -rt -90 -o ${testDir}/1_New -R 0.5 -t
echo "Converting to PNG..."
convert ${testDir}/1_New.ppm -transparent white -channel Alpha PNG32:${testDir}/1_New.png
rm ${testDir}/1_New.ppm
rm ${testDir}/1_New.*cf
echo "*************************************************************************"
echo "Running 30m Meridian test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverLIDAR -lid data/N051E000_AVE_DSM.tif.asc,data/N051W001_AVE_DSM.tif.asc -lat 51.472 -lon 0.0096 -txh 12 -f 446 -erp 5 -rxh 2 -m -dbm -rt -100 -o ${testDir}/2_Original -R 10 -t
echo "Converting to PNG..."
convert ${testDir}/2_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/2_Original.png
rm ${testDir}/2_Original.ppm
rm ${testDir}/2_Original.*cf
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverLIDAR -lid data/N051E000_AVE_DSM.tif.asc,data/N051W001_AVE_DSM.tif.asc -lat 51.472 -lon 0.0096 -txh 12 -f 446 -erp 5 -rxh 2 -m -dbm -rt -100 -o ${testDir}/2_New -R 10 -t
echo "Converting to PNG..."
convert ${testDir}/2_New.ppm -transparent white -channel Alpha PNG32:${testDir}/2_New.png
rm ${testDir}/2_New.ppm
rm ${testDir}/2_New.*cf
echo "*************************************************************************"
echo "Running 446 Mhz Antenna and UDT Clutter test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserver -sdf ${demDir} -lat 42.328889 -lon -87.862500 -txh 300 -rxh 2 -f 446 -erp 700 -R 50 -res 600 -rt 39 -ant antenna/DB413-B -rot 180 -udt data/test.udt -pm 1 -t -o ${testDir}/ant-udt_test_Original
echo "Converting to PNG..."
convert ${testDir}/ant-udt_test_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/ant-udt_test_Original.png
rm ${testDir}/ant-udt_test_Original.ppm
rm ${testDir}/ant-udt_test_Original.*cf
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserver -sdf ${demDir} -lat 42.328889 -lon -87.862500 -txh 300 -rxh 2 -f 446 -erp 700 -R 50 -res 600 -rt 39 -ant antenna/DB413-B -rot 180 -udt data/test.udt -pm 1 -t -o ${testDir}/ant-udt_test_New
echo "Converting to PNG..."
convert ${testDir}/ant-udt_test_New.ppm -transparent white -channel Alpha PNG32:${testDir}/ant-udt_test_New.png
rm ${testDir}/ant-udt_test_New.ppm
rm ${testDir}/ant-udt_test_New.*cf
echo "*************************************************************************"
echo "Running ITM coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 1 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 40.0 -o ${testDir}/REGACOM_ITM_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_ITM_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_ITM_Original.png
rm ${testDir}/REGACOM_ITM_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 1 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 40.0 -o ${testDir}/REGACOM_ITM_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_ITM_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_ITM_New.png
rm ${testDir}/REGACOM_ITM_New.ppm
echo "*************************************************************************"
echo "Running LOS coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 2 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_LOS_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_LOS_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_LOS_Original.png
rm ${testDir}/REGACOM_LOS_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 2 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_LOS_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_LOS_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_LOS_New.png
rm ${testDir}/REGACOM_LOS_New.ppm
#echo "*************************************************************************"
#echo "Running LOS coverage map test. WARNING: THIS HAS NO CROPPING SO WILL BE A *VERY* BIG IMAGE"
#time ./build/signalserverHD -pm 2 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 50.0 -o ${testDir}/REGACOM_LOS_Original
#echo "Converting to PNG..."
#convert ${testDir}/REGACOM_LOS_Original.ppm -transparent white ${testDir}/REGACOM_LOS_Original.png
#rm ${testDir}/REGACOM_LOS_Original.ppm
echo "*************************************************************************"
echo "Running Hata coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 3 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Hata_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Hata_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Hata_Original.png
rm ${testDir}/REGACOM_Hata_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 3 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Hata_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Hata_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Hata_New.png
rm ${testDir}/REGACOM_Hata_New.ppm
echo "*************************************************************************"
echo "Running ECC33 coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 4 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_ECC33_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_ECC33_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_ECC33_Original.png
rm ${testDir}/REGACOM_ECC33_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 4 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_ECC33_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_ECC33_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_ECC33_New.png
rm ${testDir}/REGACOM_ECC33_New.ppm
echo "*************************************************************************"
echo "Running SUI coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 5 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_SUI_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_SUI_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_SUI_Original.png
rm ${testDir}/REGACOM_SUI_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 5 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_SUI_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_SUI_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_SUI_New.png
rm ${testDir}/REGACOM_SUI_New.ppm
echo "*************************************************************************"
echo "Running COST-Hata coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 6 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_COST-Hata_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_COST-Hata_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_COST-Hata_Original.png
rm ${testDir}/REGACOM_COST-Hata_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 6 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_COST-Hata_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_COST-Hata_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_COST-Hata_New.png
rm ${testDir}/REGACOM_COST-Hata_New.ppm
echo "*************************************************************************"
echo "Running FSPL coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 7 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_FSPL_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_FSPL_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_FSPL_Original.png
rm ${testDir}/REGACOM_FSPL_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 7 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_FSPL_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_FSPL_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_FSPL_New.png
rm ${testDir}/REGACOM_FSPL_New.ppm
echo "*************************************************************************"
echo "Running ITWOM coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 8 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 40.0 -o ${testDir}/REGACOM_ITWOM_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_ITWOM_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_ITWOM_Original.png
rm ${testDir}/REGACOM_ITWOM_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 8 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 40.0 -o ${testDir}/REGACOM_ITWOM_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_ITWOM_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_ITWOM_New.png
rm ${testDir}/REGACOM_ITWOM_New.ppm
echo "*************************************************************************"
echo "Running Ericsson coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 9 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Ericsson_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Ericsson_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Ericsson_Original.png
rm ${testDir}/REGACOM_Ericsson_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 9 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Ericsson_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Ericsson_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Ericsson_New.png
rm ${testDir}/REGACOM_Ericsson_New.ppm
echo "*************************************************************************"
echo "Running plane earth coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 10 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Plane-Earth_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Plane-Earth_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Plane-Earth_Original.png
rm ${testDir}/REGACOM_Plane-Earth_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 10 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Plane-Earth_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Plane-Earth_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Plane-Earth_New.png
rm ${testDir}/REGACOM_Plane-Earth_New.ppm
echo "*************************************************************************"
echo "Running Egli coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 11 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Egli_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Egli_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Egli_Original.png
rm ${testDir}/REGACOM_Egli_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 11 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Egli_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Egli_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Egli_New.png
rm ${testDir}/REGACOM_Egli_New.ppm
echo "*************************************************************************"
echo "Running Soil coverage map test..."
echo "original version..."
/usr/bin/time --format='Runtime: %e seconds' signalserverHD -pm 12 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Soil_Original
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Soil_Original.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Soil_Original.png
rm ${testDir}/REGACOM_Soil_Original.ppm
echo "new version..."
/usr/bin/time --format='Runtime: %e seconds' ./src/signalserverHD -pm 12 -sdf ${demDir} -lat 46.977815 -lon 7.528691 -txh 40.0 -erp 4.0 -f 161.3 -rxh 1.5 -dbm -rt -90.0 -m -R 100.0 -o ${testDir}/REGACOM_Soil_New
echo "Converting to PNG..."
convert ${testDir}/REGACOM_Soil_New.ppm -transparent white -channel Alpha PNG32:${testDir}/REGACOM_Soil_New.png
rm ${testDir}/REGACOM_Soil_New.ppm
echo "*************************************************************************"