diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-05-08 19:59:21 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-05-08 19:59:21 +0000 |
commit | d86e33325b761d927e349a0cf1c321e70f4f2d88 (patch) | |
tree | 05cbaf017d6182a8d5bef7e1aad0a8be0cde6fab /camlibs/ptp2/test-canon-eos-100d.sh | |
parent | d1668555feb58bd60bbc40df4d581bbfeb6756b4 (diff) | |
download | libgphoto2-d86e33325b761d927e349a0cf1c321e70f4f2d88.tar.gz |
added a testcase for eos 100d
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14941 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/ptp2/test-canon-eos-100d.sh')
-rw-r--r-- | camlibs/ptp2/test-canon-eos-100d.sh | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/camlibs/ptp2/test-canon-eos-100d.sh b/camlibs/ptp2/test-canon-eos-100d.sh new file mode 100644 index 000000000..774ee62c5 --- /dev/null +++ b/camlibs/ptp2/test-canon-eos-100d.sh @@ -0,0 +1,100 @@ +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Canon EOS 1000D and press return: " +read dummy +set -x -v +echo "*** standard actions" +gphoto2 -l +gphoto2 -L +gphoto2 --summary +echo "*** single capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imageformat=8 --capture-image-and-download +rm capt0000.jpg capt0000.cr2 +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --capture-image-and-download +gphoto2 --set-config imageformat=8 --capture-image-and-download + +echo "single capture done, press return" +read dummy + +echo "*** trigger capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +rm capt0000.jpg +gphoto2 --set-config imageformat=8 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=8 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +rm capt0000.jpg capt0000.cr2 +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s +gphoto2 --set-config imageformat=8 --trigger-capture --wait-event-and-download=5s +gphoto2 --set-config imageformat=8 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s + +echo "trigger capture done, press return" +read dummy + +echo "*** interval capture" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config imageformat=8 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imageformat=8 --capture-image-and-download -F 3 -I 5 +gphoto2 --set-config imageformat=0 + +echo "*** timing capture" +gphoto2 --set-config capturetarget=0 +rm capt000*.* +time gphoto2 --set-config imageformat=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config capturetarget=1 +time gphoto2 --set-config imageformat=0 --capture-image-and-download + +echo "*** testing preview" +rm capture_preview.jpg || true +gphoto2 --capture-preview +gwenview capture_preview.jpg +rm capture_preview.jpg || true +gphoto2 --set-config capturetarget=0 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +rm capt0*.* +gwenview capture_preview.jpg +gphoto2 --set-config capturetarget=1 +gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download +gwenview capture_preview.jpg +rm capture_preview.jpg + +rm movie.mjpg || true +gphoto2 --capture-movie=10s +rm movie.mjpg + +echo "*** capture and wait_event - jpg/sdram - 10s" +gphoto2 --set-config capturetarget=0 +gphoto2 --set-config imageformat=0 +gphoto2 --wait-event-and-download=10s +gphoto2 --set-config imageformat=8 +gphoto2 --wait-event-and-download=10s +echo "*** capture and wait_event - jpg/card - 50 events" +gphoto2 --set-config capturetarget=1 +gphoto2 --set-config imageformat=0 +gphoto2 --wait-event-and-download=100 +gphoto2 --set-config imageformat=8 +gphoto2 --wait-event-and-download=100 + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +gphoto2 --set-config ownername="Markus Meissner" +gphoto2 --get-config ownername|grep Markus.Meissner +gphoto2 --set-config ownername="Marcus Meissner" +gphoto2 --get-config ownername|grep Marcus.Meissner + +echo "*** DONE" +echo rm -rf $dir |