From fc8bc6337c19450fab36d9dc1311b472764ef409 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 22 Mar 2014 15:40:11 +0000 Subject: [PATCH] added testscript for sony git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14837 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp2/test-sony-slt58.sh | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 camlibs/ptp2/test-sony-slt58.sh diff --git a/camlibs/ptp2/test-sony-slt58.sh b/camlibs/ptp2/test-sony-slt58.sh new file mode 100644 index 000000000..31cf11224 --- /dev/null +++ b/camlibs/ptp2/test-sony-slt58.sh @@ -0,0 +1,45 @@ +#!/bin/sh -x +dir=`mktemp -d /tmp/camera.XXXXXX` +cd $dir +echo -n "Attach Sony SLT and press return: " +read dummy +set -x -v +echo "*** standard actions" +gphoto2 -l +gphoto2 -L +gphoto2 --summary +echo "*** single capture" +gphoto2 --set-config imagequality=0 --capture-image-and-download +rm capt0000.jpg +gphoto2 --set-config imagequality=2 --capture-image-and-download +rm capt0000.jpg capt0000.arw + +echo "single capture done, press return" +read dummy + +echo "*** interval capture" +gphoto2 --set-config imagequality=0 --capture-image-and-download -F 3 -I 5 +rm capt000*.* +gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 5 +rm capt000*.* + +echo "*** timing capture" +rm capt000*.* +time gphoto2 --set-config imagequality=0 --capture-image-and-download +rm capt0000.jpg + +echo "*** trigger movie" +gphoto2 --set-config movie=1 --wait-event=10s --set-config movie=0 + +echo "*** capture and wait_event - jpg/sdram - 10s" +gphoto2 --set-config imagequality=0 +gphoto2 --wait-event-and-download=10s +gphoto2 --set-config imagequality=2 +gphoto2 --wait-event-and-download=10s + +echo "*** config " +gphoto2 --list-config +gphoto2 --list-all-config + +echo "*** DONE" +echo rm -rf $dir