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
49
50
51
#!/bin/bash
 
DIR_GPU=`dirname $0`
 
info_view()
{
    echo "*****************************************************"
    echo "***                                               ***"
    echo "***            GPU TEST                           ***"
    echo "***                                               ***"
    echo "*****************************************************"
}
 
info_view
echo "***********************************************************"
echo "glmark2 fullscreen test:                    1"
echo "glmark2 offscreen test:                    2"
echo "glmark2 stress test:                    3"
echo "***********************************************************"
 
read -t 30 GPU_CHOICE
 
glmark2_fullscreen_test()
{
   bash ${DIR_GPU}/test_fullscreen_glmark2.sh
}
 
glmark2_offscreen_test()
{
   bash ${DIR_GPU}/test_offscreen_glmark2.sh
}
 
glmark2_stress_test()
{
   bash ${DIR_GPU}/test_stress_glmark2.sh
}
 
case ${GPU_CHOICE} in
   1)
       glmark2_fullscreen_test
       ;;
   2)
       glmark2_offscreen_test
       ;;
   3)
       glmark2_stress_test
       ;;
   *)
       echo "not found your input."
       ;;
esac