xref: /OK3568_Linux_fs/debian/overlay-debug/rockchip-test/chromium/chromium_test.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/bash
2
3DIR_CHROMIUM=`dirname $0`
4
5info_view()
6{
7    echo "*****************************************************"
8    echo "***                                               ***"
9    echo "***            CHROMIUM TEST                      ***"
10    echo "***                                               ***"
11    echo "*****************************************************"
12}
13
14info_view
15echo "***********************************************************"
16echo "Chromium test:						1"
17echo "SimpleBrowser test:					2"
18echo "***********************************************************"
19
20read -t 30 CHROMIUM_CHOICE
21
22chromium_test()
23{
24	sh ${DIR_CHROMIUM}/test_chromium_with_video.sh
25}
26
27simplebrowser_test()
28{
29	sh ${DIR_CHROMIUM}/test_simplebrowser.sh
30}
31
32case ${CHROMIUM_CHOICE} in
33	1)
34		chromium_test
35		;;
36	2)
37		simplebrowser_test
38		;;
39	*)
40		echo "not found your input."
41		;;
42esac
43