hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
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
#!/bin/bash
### file: rockchip-test.sh
### function: ddr cpu gpio flash bt audio recovery s2r sdio/pcie(wifi)
###           ethernet reboot ddrfreq npu camera video and so on.
 
moudle_env()
{
   export  MODULE_CHOICE
}
 
module_choice()
{
    echo "******************************************************"
    echo "***                                                ***"
    echo "***          *****************************         ***"
    echo "***          *    ROCKCHIPS TEST TOOLS   *         ***"
    echo "***          *  V1.0 updated on 20220324 *         ***"
    echo "***          *****************************         ***"
    echo "***                                                ***"
    echo "*****************************************************"
 
 
    echo "*****************************************************"
    echo "cpu test:             1 (cpufreq stresstest)"
    echo "ddr test:             2 (memtester & stressapptest)"
    echo "gpu test:             3 (use glmark2)"
    echo "npu test:             4 (npu2:rk3588)"
    echo "auto reboot test:     5 (reboot tests)"
    echo "suspend_resume test:  6 (suspend & resume)"
    echo "nand power lost test: 7 (S5 stress tests)"
    echo "flash stress test:    8 (flash tests)"
    echo "audio test:           9 (audio tests)"
    echo "recovery test:        10 (default wipe all)"
    echo "bluetooth test:       11 (bluetooth on&off test)"
    echo "wifi test:            12 (wifi on&off test)"
    echo "ethernet test:        13 (ethernet tests)"
    echo "camera test:          14 (use rkaiq_demo)"
    echo "video test:           15 (use gstreamer-wayland and app_demo)"
    echo "chromium test:        16 (chromium with video hardware acceleration)"
    echo "hardware infomation:  17 (to get the hardware infomation)"
    echo "*****************************************************"
 
    echo  "please input your test moudle: "
    read -t 30  MODULE_CHOICE
}
 
npu_stress_test()
{
    bash /rockchip-test/npu/npu_test.sh
}
 
npu2_stress_test()
{
    bash /rockchip-test/npu2/npu_test.sh
}
 
ddr_test()
{
    bash /rockchip-test/ddr/ddr_test.sh
}
 
cpu_test()
{
    bash /rockchip-test/cpu/cpufreq_test.sh
}
 
flash_stress_test()
{
    bash /rockchip-test/flash_test/flash_stress_test.sh 5 20000&
}
 
recovery_test()
{
    bash /rockchip-test/recovery/recovery_test.sh
}
 
suspend_resume_test()
{
    bash /rockchip-test/suspend_resume/suspend_resume.sh
}
 
wifi_test()
{
    bash /rockchip-test/wifibt/wifi_onoff.sh
}
 
ethernet_test()
{
    bash /rockchip-test/ethernet/eth_test.sh
}
 
bluetooth_test()
{
    bash /rockchip-test/wifibt/bt_onoff.sh &
}
 
audio_test()
{
    bash /rockchip-test/audio/audio_functions_test.sh
}
 
auto_reboot_test()
{
    fcnt=/userdata/cfg/rockchip/reboot_cnt;
    if [ -e "$fcnt" ]; then
   rm -f $fcnt;
    fi
    bash /rockchip-test/auto_reboot/auto_reboot.sh
}
 
camera_test()
{
    bash /rockchip-test/camera/camera_test.sh
}
 
video_test()
{
    bash /rockchip-test/video/video_test.sh
}
 
gpu_test()
{
    bash /rockchip-test/gpu/gpu_test.sh
}
 
chromium_test()
{
    bash /rockchip-test/chromium/chromium_test.sh
}
 
power_lost_test()
{
        fcnt=/data/config/rockchip-test/reboot_cnt;
        if [ -e "$fcnt" ]; then
                rm -f $fcnt;
        fi
        bash /rockchip-test/flash_test/power_lost_test.sh &
}
 
sys_info_get()
{
    bash /rockchip-test/system_infomation/get_sys_info.sh
}
module_test()
{
   case ${MODULE_CHOICE} in
       1)
           cpu_test
           ;;
       2)
           ddr_test
           ;;
       3)
           gpu_test
           ;;
       4)
           npu2_stress_test
           ;;
       5)
           auto_reboot_test
           ;;
       6)
           suspend_resume_test
           ;;
       7)
           power_lost_test
           ;;
       8)
           flash_stress_test
           ;;
       9)
           audio_test
           ;;
       10)
           recovery_test
           ;;
       11)
           bluetooth_test
           ;;
       12)
           wifi_test
           ;;
       13)
           ethernet_test
           ;;
       14)
           camera_test
           ;;
       15)
           video_test
           ;;
       16)
           chromium_test
           ;;
       17)
           sys_info_get
           ;;
   esac
}
 
module_choice
module_test