Skip to content

Commit f2fbc6f

Browse files
committed
tests: Add zero shutter lag test
Add a zero shutter lag stills capture test. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 16564f1 commit f2fbc6f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

utils/test.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ def test_still(exe_dir, output_dir):
225225
check_time(time_taken, 1.2, 8, "test_still: no-raw test")
226226
check_size(output_jpg, 1024, "test_still: no-raw test")
227227

228+
# "zsl test". As above, but with zsl enabled
229+
print(" zsl test")
230+
retcode, time_taken = run_executable([executable, '-t', '1000', '-o', output_jpg, '--zsl'], logfile)
231+
check_retcode(retcode, "test_still: zsl test")
232+
check_time(time_taken, 1.2, 8, "test_still: zsl test")
233+
check_size(output_jpg, 1024, "test_still: zsl test")
234+
228235
# "png test". As above, but write a png.
229236
print(" png test")
230237
retcode, time_taken = run_executable(
@@ -519,7 +526,7 @@ def test_post_processing(exe_dir, output_dir, json_dir):
519526
'--post-process-file', json_file],
520527
logfile)
521528
check_retcode(retcode, "test_post_processing: hdr test")
522-
check_time(time_taken, 6, 12, "test_post_processing: hdr test")
529+
check_time(time_taken, 2, 12, "test_post_processing: hdr test")
523530
check_size(output_hdr, 1024, "test_post_processing: hdr test")
524531

525532
# "sobel test". Try to run a stage that uses OpenCV.

0 commit comments

Comments
 (0)