#!/bin/bash 
 | 
  
 | 
DIR_CAMERA=`dirname $0` 
 | 
  
 | 
info_view() 
 | 
{ 
 | 
    echo "*****************************************************" 
 | 
    echo "***                                               ***" 
 | 
    echo "***            CAMERA TEST                        ***" 
 | 
    echo "***                                               ***" 
 | 
    echo "*****************************************************" 
 | 
} 
 | 
  
 | 
info_view 
 | 
echo "*****************************************************" 
 | 
echo "camera rkisp test:                                  1" 
 | 
echo "camera rkaiq test:                                  2" 
 | 
echo "camera usb test:                                    3" 
 | 
echo "camera stresstest:                                  4" 
 | 
echo "*****************************************************" 
 | 
  
 | 
read -t 30 CAMERA_CHOICE 
 | 
  
 | 
camera_rkisp_test() 
 | 
{ 
 | 
    bash ${DIR_CAMERA}/camera_rkisp_test.sh 
 | 
} 
 | 
  
 | 
camera_rkaiq_test() 
 | 
{ 
 | 
    bash ${DIR_CAMERA}/camera_rkaiq_test.sh 
 | 
} 
 | 
  
 | 
camera_usb_test() 
 | 
{ 
 | 
    bash ${DIR_CAMERA}/camera_usb_test.sh 
 | 
} 
 | 
  
 | 
camera_stresstest() 
 | 
{ 
 | 
    bash ${DIR_CAMERA}/camera_stresstest.sh 1000 
 | 
} 
 | 
  
 | 
case ${CAMERA_CHOICE} in 
 | 
    1) 
 | 
        camera_rkisp_test 
 | 
        ;; 
 | 
    2) 
 | 
        camera_rkaiq_test 
 | 
        ;; 
 | 
    3) 
 | 
        camera_usb_test 
 | 
        ;; 
 | 
    4) 
 | 
        camera_stresstest 
 | 
        ;; 
 | 
    *) 
 | 
        echo "not found your input." 
 | 
        ;; 
 | 
esac 
 |