X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=blobdiff_plain;f=README;h=85784b285ee82f815c203a300f167102144f6255;hp=6d20e172781b38825d01f893aa21b41e25b97e26;hb=2b492b3a7bc8e4ea5dab87dcad0a82f936247058;hpb=df62f6f3694feb3b8b9ba0fa108f72b020c4b932 diff --git a/README b/README index 6d20e17..85784b2 100644 --- a/README +++ b/README @@ -54,6 +54,39 @@ This will test the decoders located at /path/to/decoders: $ LD_LIBRARY_PATH=$HOME/sr/lib ./decoder/pdtest -r -v -a +Adding tests +------------ + +The best way to add tests is to copy one that is similar, and adjust +accordingly. Some notes: + + * In test.conf, the channel assignments must be done in a specific way: + + protocol-decoder channel =<#> ... + + Example: + + protocol-decoder mcs48 d0=8 d1=9 [...] a8=0 ... + + Of important note, the channels/probes are numbered from 0, regardless of + the naming used in the capture file. + + * To troubleshoot a specific test, try: + + * Run all tests under decoder/test/: + + ./decoder/pdtest -v -d -r + + * Run the named test. Note, in this case is not + a file but rather a test described in /test.conf. + + ./decoder/pdtest -v -d -r / + + * Print parameters as parsed from /test.conf (to spot typos): + + ./decoder/pdtest -v -s + + Copyright and license ---------------------