xref: /OK3568_Linux_fs/external/rockchip-test/video/video_test.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/bash
2
3DIR_VIDEO=`dirname $0`
4
5info_view()
6{
7    echo "*****************************************************"
8    echo "***                                               ***"
9    echo "***            VIDEO TEST                         ***"
10    echo "***                                               ***"
11    echo "*****************************************************"
12}
13
14info_view
15echo "***********************************************************"
16echo "video test:                                              1"
17echo "video test with FPS display:                             2"
18echo "video max FPS test without display:                      3"
19echo "multivideo test:                                         4"
20echo "video stresstest:                                        5"
21echo "***********************************************************"
22
23read -t 30 VIDEO_CHOICE
24
25video_test()
26{
27	sh ${DIR_VIDEO}/test_gst_video.sh
28}
29
30video_test_fps()
31{
32	sh ${DIR_VIDEO}/test_gst_video_fps.sh
33}
34
35video_test_maxfps()
36{
37	sh ${DIR_VIDEO}/test_gst_video_maxfps.sh
38}
39
40multivideo_test()
41{
42	sh ${DIR_VIDEO}/test_gst_multivideo.sh
43}
44
45video_stresstest()
46{
47	sh ${DIR_VIDEO}/video_stresstest.sh
48}
49
50case ${VIDEO_CHOICE} in
51	1)
52		video_test
53		;;
54	2)
55		video_test_fps
56		;;
57	3)
58		video_test_maxfps
59		;;
60	4)
61		multivideo_test
62		;;
63	5)
64		video_stresstest
65		;;
66	*)
67		echo "not found your input."
68		;;
69esac
70