linuxOS_AP05/debian/test/rockchip-test/camera/camera_test.sh
2025-09-26 09:40:02 +08:00

61 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
DIR_CAMERA=/rockchip-test/camera
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 fount your input."
;;
esac