diff --git a/v4l/automated/run-test.sh b/v4l/automated/run-test.sh index f3bcaa27175375c8b3b554741f2d9ef7bbe9bae9..45b235d233ab66a64581cdc451db906fafa4e765 100755 --- a/v4l/automated/run-test.sh +++ b/v4l/automated/run-test.sh @@ -6,7 +6,7 @@ set -e TESTDIR=$(cd $(dirname $0); pwd; cd - &>/dev/null) . "${TESTDIR}/config.sh" -V4L_NR="99" +V4L_NR="0" V4L_DEVICE="/dev/video${V4L_NR}" V4L_TEST="v4l_test" @@ -26,8 +26,8 @@ else fi if ! arch_is_arm; then - sudo modprobe -r vivi - sudo modprobe vivi "video_nr=${V4L_NR}" + sudo modprobe -r vivid + sudo modprobe vivid fi setup_success @@ -35,13 +35,13 @@ setup_success ########### # Execute # ########### -test_vivi_to_stdout() { +test_vivid_to_stdout() { local outfile expected_size actual_size outfile="${WORKDIR}/v4l_out.bin" - expected_size=$((10*640*480*32/8)) + expected_size=$((10*640*360*32/8)) - # Get 10 frames from vivi + # Get 10 frames from vivid "${V4L2FB}" "${V4L_DEVICE}" "${V4L_TEST}" 10 > "${outfile}" sync actual_size=$(wc -c < "${outfile}") @@ -60,11 +60,11 @@ trap "test_failure" ERR if arch_is_arm; then say "Test only works on x86, skipping..." src_test_pass <<-EOF -#test_vivi_to_stdout +#test_vivid_to_stdout EOF else src_test_pass <<-EOF -test_vivi_to_stdout +test_vivid_to_stdout EOF fi