xref: /OK3568_Linux_fs/debian/overlay-debug/rockchip-test/gpu/gpu_test.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/bash
2
3DIR_GPU=`dirname $0`
4
5info_view()
6{
7    echo "*****************************************************"
8    echo "***                                               ***"
9    echo "***                 GPU TEST                      ***"
10    echo "***                                               ***"
11    echo "*****************************************************"
12}
13
14info_view
15echo "***********************************************************"
16echo "glmark2 fullscreen test:                                 1"
17echo "glmark2 normal test (800x600):                           2"
18echo "glmark2 offscreen test:                                  3"
19echo "glmark2 stress test:                                     4"
20echo "***********************************************************"
21
22read -t 30 GPU_CHOICE
23
24glmark2_fullscreen_test()
25{
26	bash ${DIR_GPU}/test_fullscreen_glmark2.sh
27}
28
29glmark2_normal_test()
30{
31	bash ${DIR_GPU}/test_normal_glmark2.sh
32}
33
34glmark2_offscreen_test()
35{
36	bash ${DIR_GPU}/test_offscreen_glmark2.sh
37}
38
39glmark2_stress_test()
40{
41	bash ${DIR_GPU}/test_stress_glmark2.sh
42}
43
44case ${GPU_CHOICE} in
45	1)
46		glmark2_fullscreen_test
47		;;
48	2)
49		glmark2_normal_test
50		;;
51	3)
52		glmark2_offscreen_test
53		;;
54	4)
55		glmark2_stress_test
56		;;
57	*)
58		echo "not found your input."
59		;;
60esac
61