hc
2024-08-16 a24a44ff9ca902811b99aa9663d697cf452e08ef
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
;-------------------------------------------------------------------------------
; 测试模块配置示例
;
; [example]
; display_name= "Example"
; activated   = 1
; program     = "example.sh"
; category    = 0
; run_type    = 1
;
; display_name
;   显示到界面的名称,字符串类型,如果需要显示双引号,可以使用以下语法:
;       display_name= string:"Example"
;   区别在于后者会显示"string:"后面所有的字符,包括空格和制表符。该项能够容纳
;   64个英文字符,32个中文字符。如果display_name为空,测试程序不会运行。
;
; activated
;   0: 不测试该模块
;   1: 测试该模块
;
; program
;   模块的测试程序,该项能够容纳16个英文字符。
;
; category
;   0: 自动化测试模块
;   1: 手动测试模块
;
; run_type
;   0: 等待当前模块的测试程序执行完毕再运行下一个模块的测试程序
;   1: 不等待当前模块的测试程序执行完毕
;   一般为了提高整体的测试速度,对于耗时较长的测试程序建议填0,反之填1;注意,当
;   category = 1,即手动测试模块时,该项无效。
;-------------------------------------------------------------------------------
 
;-------------------------------------------------------------------------------
; test_size
;   unit: MB
;-------------------------------------------------------------------------------
[ddr]
display_name= "ddr"
activated   = 1
program     = "memtester.sh"
category    = 0
freq_test   = 0
min_freq    = 0
max_freq    = 0
 
;-------------------------------------------------------------------------------
; test_size
;   unit: MB
;-------------------------------------------------------------------------------
[emmc]
display_name= "emmc"
activated   = 1
program     = emmc_test
category    = 0
freq_test   = 0
min_freq    = 0
max_freq    = 0
 
;-------------------------------------------------------------------------------
; emmc and ddr
;-------------------------------------------------------------------------------
 
[ddr_emmc]
display_name= "ddr_emmc"
activated   = 0
program     = "ddr_emmc_test"
category    = 0
freq_test   = 0
min_freq    = 0
max_freq    = 0
 
;-------------------------------------------------------------------------------
; lcd test
; start_key:  value: "KEY_BACK" "KEY_VOLUMEUP"  "KEY_VOLUMEDOWN" "KEY_HOME" "KEY_MENU"
;              "KEY_ENTER" "KEY_ALL"
; key_times:  press start_key key_times will enter lcd test mode.
; all_key_change: if 1, all keys will change the picture(after test started).
;-------------------------------------------------------------------------------
 
[Lcd]
display_name= "lcd"
activated   = 1
program     = "lcd test"
category    = 1
run_type    = 1
start_key  = "KEY_VOLUMEUP"
key_times   = 3
all_key_change = 1
 
 
[rtc]
display_name= "rtc"
activated   = 1
program     = "rtctester.sh"
category    = 0
run_type    = 1
module_args = "20121113.160145"
 
[sim]
display_name= "sim"
activated   = 0
program     = "simtester.sh"
category    = 0
run_type    = 1
;-------------------------------------------------------------------------------
; module_path
;   The full path of wifi module file.
; module_args
;   The arguments of wifi module.
;-------------------------------------------------------------------------------
[wifi]
display_name= "wlan"
activated   = 0
program     = "wifitester.sh"
category    = 0
run_type    = 1
module_path = "/system/vendor/modules/8192cu.ko"
module_args = 
 
[cpu]
display_name= "cpu"
activated   = 0
program     = ""
category    = 0
 
;-------------------------------------------------------------------------------
; use_ping
;   Whether to use ping cmd to test ethernet, 1:Yes 0:No
; local_addr
;   The ip address of local device. if use_ping is 1
; ping_addr
;   The destination address that use to ping test. if use_ping is 1
;-------------------------------------------------------------------------------
[lan]
display_name= "Lan"
activated   = 0
program     = ""
category    = 0
run_type    = 1
use_ping    = 0
local_addr  = "172.16.8.177"
ping_addr   = "172.16.8.1"
 
;-------------------------------------------------------------------------------
; support sensor type
;   1 : GSENSOR
;   2 : GYROSCOPE
;   4 : COMPASS
;   8 : LSENSOR
;  16 : PSENSOR
;  32 : GSENSOR_CALIBRATE
;
;   3 : GSENSOR|GYROSCOPE
;   7 : GSENSOR|GYROSCOPE|COMPASS
;  39 : GSENSOR|GYROSCOPE|COMPASS|GSENSOR_CALIBRATE
;  15 : GSENSOR|GYROSCOPE|COMPASS|LSENSOR
;  31 : GSENSOR|GYROSCOPE|COMPASS|LSENSOR|PSENSOR
;  63 : GSENSOR|GYROSCOPE|COMPASS|LSENSOR|PSENSOR|GSENSOR_CALIBRATE
;-------------------------------------------------------------------------------
[allsensor]
display_name= "allsensor"
activated   = 0
program     = ""
category    = 0
run_type    = 1
sensor_type = 39
 
;-------------------------------------------------------------------------------
; module_path
;   The full path of g-sensor module file.
; device_name
;   The name of g-sensor device.
;-------------------------------------------------------------------------------
[gsensor]
display_name= "gsensor"
activated   = 0
program     = "gsensortester.sh"
category    = 0
run_type    = 1
module_count= 1
calibrate   = 0 
 
;-------------------------------------------------------------------------------
; test_size
;   Test size for nand read and write test.
;-------------------------------------------------------------------------------
[nand]
display_name= "nand"
activated   = 0
program     = "nandtester.sh"
category    = 0
run_type    = 1
test_size   = 128
 
[bluetooth]
display_name= "bluetooth"
activated   = 0
program     = ""
category    = 0
run_type    = 1
chip_type   = "" ; rk903, mt6622, rda587x, rda5990, rtk8723as, rtk8723bs, rtk8723au, rtk8723bu, bk3515
 
[sdcard]
display_name= "SDcard"
activated   = 1
program     = "mmctester.sh"
category    = 0
run_type    = 1
 
[udisk]
display_name= "Udisk"
activated   = 1
program     = "udisktester.sh"
category    = 0
run_type    = 1
 
;-------------------------------------------------------------------------------
; sound_file
;   The full path of sound file.
; samplerate
;   The samplerate of sound file.
; support_mode
;   0 : 480I    
;   1 : 576I    
;   2 : 480P    
;   3 : 576P    
;   4 : 720P 50HZ
;   5 : 720P 60HZ
;   6 : 1080I 50HZ
;   7 : 1080I 60HZ
;   8 : 1080P 24HZ
;   9 : 1080P 50HZ
;   10: 1080P 60HZ
;-------------------------------------------------------------------------------
[hdmi]
display_name= "HDMI"
activated   = 0
program     = "hdmitester"
category    = 0
run_type    = 1
sound_file  = "/res/codectest.pcm"
;samplerate  = 48000
;support_mode= 2
 
;-------------------------------------------------------------------------------
; module_path
;   The full path of key module file.
;-------------------------------------------------------------------------------
[Key]
display_name= "Key"
activated   = 1
program     = "keytester"
category    = 1
run_type    = 1
;module_path = 
 
;-------------------------------------------------------------------------------
; module_path
;   The full path of ir module file.
;-------------------------------------------------------------------------------
[ir]
display_name= "红外"
activated   = 0
program     = "irtester"
category    = 1
run_type    = 1
 
;-------------------------------------------------------------------------------
; delay
;   delay ? second before recording
;-------------------------------------------------------------------------------
[Codec]
display_name= "Codec"
activated   = 0
program     = "case1" ; case1 : 先放后录模式,测试效率相对低,使用喇叭时不会有啸叫,可在使用喇叭时选择此模式 
                      ; case2 : 边录边放模式,测试效率高,使用喇叭时会有啸叫,可在使用耳机时选择此模式
category    = 1
run_type    = 1
delay       = 5
volume      = 40
 
[play]
display_name= "audioplay"
activated   = 1
program     = 
category    = 1
run_type    = 1
delay       = 5
volume      = 40
 
[record]
display_name= "audiorecord"
activated   = 1
program     = 
category    = 1
run_type    = 1
delay       = 5
volume      = 40
 
;-------------------------------------------------------------------------------
; type
;   0: rtp
;   1: ctp
; module_path
;   The full path of tp module.
;-------------------------------------------------------------------------------
[tp]
display_name= "tp"
type        = 0
 
;-------------------------------------------------------------------------------
; moudle battery
;-------------------------------------------------------------------------------
[battery]
display_name= "battery"
activated   = 1
program     = "battery_test"
category    = 1
run_type    = 1
 
;-------------------------------------------------------------------------------
; module_count
;   The number of module need to be insmod.
; modulex_path
;   'x' is the index of module, starts from 0.
;-------------------------------------------------------------------------------
[camera]
display_name = "camera"
activated   = 1
category    = 0
program     = "camerates.sh"
number        = 2
 
;-------------------------------------------------------------------------------
; manual_menu_name
;   manual test case menu name, 32bytes.
; auto_menu_name
;   auto test case menu name, 32bytes.
; clear_button_name
;   clear screen button name, 8bytes.
; font_size
;   test case font display size, valid value: 20pixel(default), 24pixel.
; height_adjust
;   adjust height of manual test case and auto test case.
;
; Color Index
;   0: White
;   1: Yellow
;   2: Green
;   3: Cyan
;   4: Magenta
;   5: Red
;   6: Blue
;   7: Black
;
; menu_bgcolor
;   The background color index of test case category menu.
; menu_fgcolor
;   The foreground color index of test case category menu.
; item_init_bgcolor
;   The background color index of test case item init status.
; item_init_fgcolor
;   The foreground color index of test case item init status.
; item_ok_bgcolor
;   The background color index of test case item OK status.
; item_ok_fgcolor
;   The foreground color index of test case item OK status.
; item_fail_bgcolor
;   The background color index of test case item fail status.
; item_fail_fgcolor
;   The foreground color index of test case item fail status.
;
; pass_str
;   The string display after test case display_name when test OK.
; fail_str
;   The string display after test case display_name when test Fail.
;-------------------------------------------------------------------------------
[df_view]
manual_menu_name    = "手动测试项"
auto_menu_name      = "自动测试项"
clear_button_name   = "清屏"
font_size           = 20
height_adjust       = 56
menu_bgcolor        = 1
menu_fgcolor        = 7
 
item_init_bgcolor   = 7
item_init_fgcolor   = 0
item_ok_bgcolor     = 7
item_ok_fgcolor     = 6
item_fail_bgcolor   = 7
item_fail_fgcolor   = 5
tp_draw_color       = 0
 
;item_init_bgcolor   = 0
;item_init_fgcolor   = 7
;item_ok_bgcolor     = 0
;item_ok_fgcolor     = 6
;item_fail_bgcolor   = 0
;item_fail_fgcolor   = 5
;tp_draw_color       = 7
 
pass_str            = "通过"
fail_str            = "失败"