Introduction
This page collects resources and techniques for testing a CHDK build or port. See also Debugging
this is a work in progress, please expand!
General guidelines
The CHDK User Manual gives an good overview of many features. Working through this list and verifying that your port matches the documented behavior.
Note that many CHDK features are poorly documented or poorly defined. When in doubt, consult the source.
Testing overrides
When testing overrides from script or the override menu, it is important to know Canon firmware displays and EXIF information may not reflect the actual value used. The functionality of the override should be determined from the image.
Testing with scripts
There are some scripts which exercise various CHDK capabilities
llibtst.lua
Tests the lua standard libraries. This also exercises many C library functions.
Download [1] (also included in "full" install)
Documentation Lua#Lua_library_test
setmode.lua
Tests the capture mode switching functions and mode map.
Download [2] (also included in "full" install)
Documentation Lua/Scripts:Standard/Test/Setmode
ubtest.bas
General purpose ubasic test.
Download ubtest.bas (also included in "full" install)
Documentation http://chdk.setepontos.com/index.php?topic=6592.0