1 -------------------------------------------------------------------------------
3 -------------------------------------------------------------------------------
5 The sigrok project aims at creating a portable, cross-platform,
6 Free/Libre/Open-Source signal analysis software suite that supports various
7 device types (such as logic analyzers, oscilloscopes, multimeters, and more).
9 sigrok-test is a collection of various tools and files for testing sigrok.
17 Distro packagers should NOT package this!
32 - libsigrokdecode >= 0.5.0
39 Assumption: libsigrok and libsigrokdecode are installed in $HOME/sr.
40 If they are in a standard location instead, you don't need the
41 PKG_CONFIG_PATH and LD_LIBRARY_PATH below.
43 In order to get the sigrok-test source code and build it, run:
45 $ git clone git://sigrok.org/sigrok-test
48 $ PKG_CONFIG_PATH=$HOME/sr/lib/pkgconfig ./configure \
49 --with-decodersdir=/path/to/decoders
52 This will test the decoders located at /path/to/decoders:
54 $ LD_LIBRARY_PATH=$HOME/sr/lib ./decoder/pdtest -r -v -a
60 The best way to add tests is to copy one that is similar, and adjust
61 accordingly. Some notes:
63 * In test.conf, the channel assignments must be done in a specific way:
65 protocol-decoder <pdname> channel <pd_channel_name>=<#> ...
69 protocol-decoder mcs48 d0=8 d1=9 [...] a8=0 ...
71 Of important note, the channels/probes are numbered from 0, regardless of
72 the naming used in the capture file.
74 * To initially generate the test files which have been configured in test.conf
75 pdtest has to be run with the -f parameter first.
79 ./decoder/pdtest -r -v -f <testroot>
81 This can also be done to update the test-cases in case of a changes in
84 * To troubleshoot a specific test, try:
86 * Run all tests under decoder/test/<testroot>:
88 ./decoder/pdtest -v -d -r <testroot>
90 * Run the named test. Note, in this case <testname> is not
91 a file but rather a test described in <testroot>/test.conf.
93 ./decoder/pdtest -v -d -r <testroot>/<testname>
95 * Print parameters as parsed from <testroot>/test.conf (to spot typos):
97 ./decoder/pdtest -v -s <testroot>
100 Copyright and license
101 ---------------------
103 sigrok-test contains various tools that are licensed under different terms.
105 Some are licensed under the terms of the GNU GPL version 2 (or later),
106 others under the terms of the GNU GPL version 3 (or later).
108 Please see the individual source files for the full list of copyright holders
109 and the license that applies to the respective tool.
115 https://lists.sourceforge.net/lists/listinfo/sigrok-devel
121 You can find the sigrok developers in the #sigrok IRC channel on Libera.Chat.