diff options
author | Timothy Knight <tknight@google.com> | 2014-07-09 02:41:45 -0700 |
---|---|---|
committer | Timothy Knight <tknight@google.com> | 2014-07-09 02:41:45 -0700 |
commit | f9b4c5ff8d4bede5730adeccac0dffe2325c0d1f (patch) | |
tree | d1514c4b1ef51a53bc1f655b0149fa6ad7d117cf /apps | |
parent | 590d61a92473135485394c82513965b3be2da25a (diff) | |
download | pdk-f9b4c5ff8d4bede5730adeccac0dffe2325c0d1f.tar.gz |
CameraITS: Updated regression script
Change-Id: I61ef10d741333cb89e8871e3be65cf1cf3f9f332
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/CameraITS/tests/regress.sh | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/apps/CameraITS/tests/regress.sh b/apps/CameraITS/tests/regress.sh index 080df3f..b88e0af 100755 --- a/apps/CameraITS/tests/regress.sh +++ b/apps/CameraITS/tests/regress.sh @@ -15,18 +15,35 @@ # limitations under the License. # The tests exercised in this file all assert/exit on failure, and terminate -# cleanly on success. The device is rebooted for each test, to ensure that -# a problem in one test doesn't propagate into subsequent tests. +# cleanly on success. -rm -rf out -mkdir -p out -cd out +# Optionally, the device can be rebooted for each test, to ensure that +# a problem in one test doesn't propagate into subsequent tests; use this +# when debugging test failures, but not when running the test suite (since +# all tests should pass even when run back-to-back). +#REBOOT=reboot echo "" echo "--------------------------------------------------------------------" -echo "Getting target exposure value of scene" +echo "Set up camera for scene 1:" +echo "* Camera on tripod, in either portrait or landscape orientation" +echo "* Scene filled (or mostly filled) by grey card" +echo "* Illuminated by simple light source, for example a desk lamp" +echo "* Uniformity of lighting and target positioning need not be precise" +echo "" +echo "Use any camera app to be able to see preview while setting up the" +echo "camera, grey card, and light source; make sure that the camera app" +echo "is killed before proceeding." +echo "" +echo "Press ENTER when the camera set up is complete ..." echo "--------------------------------------------------------------------" -python ../config.py reboot +read DUMMY + +rm -rf out1 +mkdir -p out1 +cd out1 + +python ../config.py $REBOOT testcount=0 failcount=0 @@ -69,7 +86,7 @@ do echo "--------------------------------------------------------------------" echo "Running test: $T" echo "--------------------------------------------------------------------" - python ../"$T" reboot + python ../"$T" $REBOOT code=$? if [ $code -ne 0 ]; then let failcount=failcount+1 |