hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
#!/bin/bash
 
CURRENT_DIR=`dirname $0`
 
info_view()
{
   echo $CURRENT_DIR
   echo "*****************************************************"
   echo "***                                               ***"
   echo "***                 CPU TEST                      ***"
   echo "***                                               ***"
   echo "*****************************************************"
}
 
info_view
echo "*****************************************************"
echo "stressapptest test:                               1"
echo "cpu auto scaling:                                 2"
echo "stressapptest + cpu auto scaling:                 3"
echo "*****************************************************"
 
read -t 30 CPUFREQ_CHOICE
 
cpu_stress_test()
{
   bash ${CURRENT_DIR}/../ddr/stressapptest_test.sh &
}
 
cpu_freq_scaling_test()
{
   bash ${CURRENT_DIR}/cpu_freq_scaling.sh &
}
 
case ${CPUFREQ_CHOICE} in
   1)
       cpu_stress_test
       ;;
   2)
       cpu_freq_scaling_test
       ;;
   3)
       cpu_stress_test
       cpu_freq_scaling_test
       ;;
   *)
       echo "not found your input."
       ;;
esac