1#!/bin/bash 2 3DIR_CAMERA=`dirname $0` 4 5info_view() 6{ 7 echo "*****************************************************" 8 echo "*** ***" 9 echo "*** CAMERA TEST ***" 10 echo "*** ***" 11 echo "*****************************************************" 12} 13 14info_view 15echo "*****************************************************" 16echo "camera rkisp test: 1" 17echo "camera usb test: 2" 18echo "camera stresstest by v4l2: 3" 19echo "camera stresstest by rkisp_demo: 4" 20echo "*****************************************************" 21 22read -t 30 CAMERA_CHOICE 23 24camera_rkisp_test() 25{ 26 bash ${DIR_CAMERA}/camera_rkisp_test.sh 27} 28 29camera_usb_test() 30{ 31 bash ${DIR_CAMERA}/camera_usb_test.sh 32} 33 34camera_stresstest_v4l2() 35{ 36 bash ${DIR_CAMERA}/camera_stresstest_v4l2.sh 37} 38 39camera_stresstest_rkisp_demo() 40{ 41 bash ${DIR_CAMERA}/camera_stresstest_rkisp_demo.sh 42} 43 44case ${CAMERA_CHOICE} in 45 1) 46 camera_rkisp_test 47 ;; 48 2) 49 camera_usb_test 50 ;; 51 3) 52 camera_stresstest_v4l2 53 ;; 54 4) 55 camera_stresstest_rkisp_demo 56 ;; 57 *) 58 echo "not found your input." 59 ;; 60esac 61