ok - so am incrementally re-running the api_test.lua - uncommenting the commented out tests - working backwards from test_movie.
I've pasted the script segment at the top of each code segment - so its script segment then lua.log -
all on 650D.104 - with magiclantern-lua_fix.2018Mar31.650D104 18.55kit lens
each time battery out / reset settings /fresh install onto card/
Cam set to Photo M each time and switching to AV / Movie as requested.
in summary seems to work until I get to test_keys(). see log 4.
Oh the only other strangeness is that the edited script never gives a Done! in the output, even with just test_movie - which records one movie clip. TBH I'm not really sure what I'm doing here --- just trying to find out why the api_test.lua - fails to run all the scripts.
log 1 - test_camera_exposure() & test_movie() nb (test_movie() is same)
printf("Module tests...\n")
-- test_io()
-- test_camera_gui()
-- test_menu()
-- test_camera_take_pics()
-- sleep(1)
-- test_multitasking()
-- test_keys()
-- test_lv()
-- test_lens_focus()
test_camera_exposure()
test_movie()
printf("Done!\n")
===============================================================================
ML/SCRIPTS/api_test.lua - 2018-4-24 12:58:16
===============================================================================
Module tests...
Testing exposure settings...
Camera : Canon EOS 650D (650D) 1.0.4
Lens : EF-S18-55mm f/3.5-5.6 IS II
Shoot mode: 3
Shutter : 125 (raw 112, 0.007812s, 8ms, apex 7.)
Aperture : 5.6 (raw 48, f/5.6, apex 5.)
Av range : 4.0..25 (raw 40..83, f/4...f/25.7, apex 4...9.375)
ISO : Auto (raw 0, 0, apex 0)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...
Setting ISO to random values...
Setting aperture to random values...
Please switch to Av mode.
Setting EC to random values...
Setting Flash EC to random values...
Exposure tests completed.
Testing movie recording...
Please switch to Movie mode.
log 2 - test_lens_focus() test_camera_exposure() test_movie()
printf("Module tests...\n")
-- test_io()
-- test_camera_gui()
-- test_menu()
-- test_camera_take_pics()
-- sleep(1)
-- test_multitasking()
-- test_keys()
-- test_lv()
test_lens_focus()
test_camera_exposure()
test_movie()
printf("Done!\n")
===============================================================================
ML/SCRIPTS/api_test.lua - 2018-4-24 13:19:53
===============================================================================
Module tests...
Testing lens focus functionality...
Autofocus outside LiveView...
Focus distance: 270
Autofocus in LiveView...
Please trigger autofocus (half-shutter / AF-ON / * ).
19...18...17...16...15...14...Autofocus triggered.
Autofocus completed.
Focus distance: 370
Focusing backward...
Focus distance: 655350
Focus motor position: 0
Focusing forward with step size 3, wait=true...
...........
Focus distance: 280
Focus motor position: 0
Focusing backward with step size 3, wait=true...
..............
Focus distance: 655350
Focus motor position: 0
Focus range: 11 steps forward, 14 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 3, wait=false...
..............
Focus distance: 250
Focus motor position: 0
Focusing backward with step size 3, wait=false...
........................................
Focus distance: 655350
Focus motor position: 0
Focus range: 14 steps forward, 40 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=true...
...........................................................................
Focus distance: 270
Focus motor position: 0
Focusing backward with step size 2, wait=true...
...
Focus distance: 655350
Focus motor position: 0
Focus range: 75 steps forward, 120 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=false...
...
Focus distance: 410
Focus motor position: 0
Focusing backward with step size 2, wait=false...
...
Focus distance: 410
Focus motor position: 0
Focus range: 159 steps forward, 399 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=true...
...
Focus distance: 410
Focus motor position: 0
Focusing backward with step size 1, wait=true...
...
Focus distance: 410
Focus motor position: 0
Focus range: 367 steps forward, 389 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=false...
...
Focus distance: 410
Focus motor position: 0
Focusing backward with step size 1, wait=false...
...
Focus distance: 410
Focus motor position: 0
Focus range: 606 steps forward, 575 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focus test completed.
Testing exposure settings...
Camera : Canon EOS 650D (650D) 1.0.4
Lens : EF-S18-55mm f/3.5-5.6 IS II
Shoot mode: 3
Shutter : 125 (raw 112, 0.007812s, 8ms, apex 7.)
Aperture : 5.6 (raw 48, f/5.6, apex 5.)
Av range : 4.0..25 (raw 40..83, f/4...f/25.7, apex 4...9.375)
ISO : Auto (raw 0, 0, apex 0)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...
Setting ISO to random values...
Setting aperture to random values...
Please switch to Av mode.
Setting EC to random values...
Setting Flash EC to random values...
Exposure tests completed.
Testing movie recording...
Please switch to Movie mode.
log 3 - test_lv() test_lens_focus() test_camera_exposure() test_movie()
seems to be okay.
printf("Module tests...\n")
-- test_io()
-- test_camera_gui()
-- test_menu()
-- test_camera_take_pics()
-- sleep(1)
-- test_multitasking()
-- test_keys()
test_lv()
test_lens_focus()
test_camera_exposure()
test_movie()
printf("Done!\n")
===============================================================================
ML/SCRIPTS/api_test.lua - 2018-4-24 13:37:57
===============================================================================
Module tests...
Testing module 'lv'...
Starting LiveView...
Overlays: Canon
Overlays: Canon
Overlays: ML
Overlays: ML
Overlays: disabled
Overlays: Canon
Overlays: Canon
Overlays: Canon
Overlays: disabled
Overlays: ML
Overlays: disabled
Overlays: Canon
Overlays: Canon
Overlays: Canon
Overlays: Canon
Setting zoom to x1...
Setting zoom to x5...
Setting zoom to x10...
Setting zoom to x5...
Setting zoom to x1...
Setting zoom to x10...
Setting zoom to x1...
Pausing LiveView...
Resuming LiveView...
Stopping LiveView...
LiveView tests completed.
Testing lens focus functionality...
Autofocus outside LiveView...
Focus distance: 580
Autofocus in LiveView...
Please trigger autofocus (half-shutter / AF-ON / * ).
19...18...Autofocus triggered.
Autofocus completed.
Focus distance: 760
Focusing backward...
Focus distance: 655350
Focus motor position: 0
Focusing forward with step size 3, wait=true...
...............
Focus distance: 250
Focus motor position: 0
Focusing backward with step size 3, wait=true...
.............
Focus distance: 655350
Focus motor position: 0
Focus range: 15 steps forward, 13 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 3, wait=false...
.................
Focus distance: 330
Focus motor position: 0
Focusing backward with step size 3, wait=false...
................
Focus distance: 330
Focus motor position: 0
Focus range: 17 steps forward, 16 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=true...
......................................
Focus distance: 330
Focus motor position: 0
Focusing backward with step size 2, wait=true...
.....................................
Focus distance: 330
Focus motor position: 0
Focus range: 38 steps forward, 37 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=false...
..................................................................................
Focus distance: 330
Focus motor position: 0
Focusing backward with step size 2, wait=false...
...
Focus distance: 330
Focus motor position: 0
Focus range: 82 steps forward, 137 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=true...
...
Focus distance: 330
Focus motor position: 0
Focusing backward with step size 1, wait=true...
...
Focus distance: 330
Focus motor position: 0
Focus range: 282 steps forward, 156 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=false...
...
Focus distance: 330
Focus motor position: 0
Focusing backward with step size 1, wait=false...
.............................................
Focus distance: 330
Focus motor position: 0
Focus range: 200 steps forward, 45 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focus test completed.
Testing exposure settings...
Camera : Canon EOS 650D (650D) 1.0.4
Lens : EF-S18-55mm f/3.5-5.6 IS II
Shoot mode: 3
Shutter : 125 (raw 112, 0.007812s, 8ms, apex 7.)
Aperture : 5.6 (raw 48, f/5.6, apex 5.)
Av range : 4.0..25 (raw 40..83, f/4...f/25.7, apex 4...9.375)
ISO : Auto (raw 0, 0, apex 0)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...
Setting ISO to random values...
Setting aperture to random values...
Please switch to Av mode.
Setting EC to random values...
Setting Flash EC to random values...
Exposure tests completed.
Testing movie recording...
Please switch to Movie mode.
log 4 - this one seems to be the culprit - adding in test_keys().
test_keys() test_lv() test_lens_focus() test_camera_exposure() test_movie()
printf("Module tests...\n")
-- test_io()
-- test_camera_gui()
-- test_menu()
-- test_camera_take_pics()
-- sleep(1)
-- test_multitasking()
test_keys()
test_lv()
test_lens_focus()
test_camera_exposure()
test_movie()
printf("Done!\n")
===============================================================================
ML/SCRIPTS/api_test.lua - 2018-4-24 14:07:20
===============================================================================
Module tests...
Testing half-shutter...