This project is a fork of the sigrok-test.git project. If you have that one already cloned locally, you can use
git clone --reference /path/to/your/sigrok-test.git/incarnation mirror_URL
to save bandwidth during cloning.
 
descriptiongsi's contribution to sigrok-test
ownerGerhard.Sittig@gmx.net
last changeSat, 29 Jul 2023 15:43:53 +0000 (29 17:43 +0200)
content tags
add:
README
-------------------------------------------------------------------------------
README
-------------------------------------------------------------------------------

The sigrok project aims at creating a portable, cross-platform,
Free/Libre/Open-Source signal analysis software suite that supports various
device types (such as logic analyzers, oscilloscopes, multimeters, and more).

sigrok-test is a collection of various tools and files for testing sigrok.


Status
------

Work in progress.

Distro packagers should NOT package this!


Requirements
------------

 - git
 - gcc
 - make
 - autoconf >= 2.63
 - automake >= 1.11
 - pkg-config >= 0.22
 - libglib >= 2.24.0
 - Python >= 3.2
 - libsigrok >= 0.5.0
 - libsigrokdecode >= 0.5.0
 - python3-coverage


Building and usage
------------------

Assumption: libsigrok and libsigrokdecode are installed in $HOME/sr.
If they are in a standard location instead, you don't need the
PKG_CONFIG_PATH and LD_LIBRARY_PATH below.

In order to get the sigrok-test source code and build it, run:

 $ git clone git://sigrok.org/sigrok-test
 $ cd sigrok-test
 $ ./autogen.sh
 $ PKG_CONFIG_PATH=$HOME/sr/lib/pkgconfig ./configure \
	--with-decodersdir=/path/to/decoders
 $ make

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 <pdname> channel <pd_channel_name>=<#> ...

   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 initially generate the test files which have been configured in test.conf
   pdtest has to be run with the -f parameter first.

   Example:

    ./decoder/pdtest -r -v -f <testroot>

  This can also be done to update the test-cases in case of a changes in
  the protocol decoder.

 * To troubleshoot a specific test, try:

    * Run all tests under decoder/test/<testroot>:

      ./decoder/pdtest -v -d -r <testroot>

    * Run the named test. Note, in this case <testname> is not
      a file but rather a test described in <testroot>/test.conf.

      ./decoder/pdtest -v -d -r <testroot>/<testname>

    * Print parameters as parsed from <testroot>/test.conf (to spot typos):

      ./decoder/pdtest -v -s <testroot>


Copyright and license
---------------------

sigrok-test contains various tools that are licensed under different terms.

Some are licensed under the terms of the GNU GPL version 2 (or later),
others under the terms of the GNU GPL version 3 (or later).

Please see the individual source files for the full list of copyright holders
and the license that applies to the respective tool.


Mailing list
------------

 https://lists.sourceforge.net/lists/listinfo/sigrok-devel


IRC
---

You can find the sigrok developers in the #sigrok IRC channel on Libera.Chat.


Website
-------

 http://sigrok.org
shortlog
2023-07-29 Gerhard Sittigrgb_led_ws281x: catch up with colour component annotationsmaster
2023-07-29 Gerhard Sittigrgb_led_ws281x: catch up with decoder option rename
2023-07-18 Gerhard Sittigi2cfilter: add tests to cover filter by direction
2022-10-03 Gerhard Sittigparallel: recent PD implementation flushes last samples...
2022-04-23 Gerhard Sittigpdtest: add support for input format specs in test...
2022-04-23 Gerhard Sittigruntc: add support for input file formats other than...
2022-04-23 Gerhard Sittigruntc: cope with "late" samplerate announcement
2022-04-23 Gerhard Sittigruntc: avoid the 'class' identifier in C language appli...
2022-02-21 Gerhard Sittigconfigure.ac: check for python3-embed
2021-12-26 Gerhard Sittigruntc: optionally send EOF to decoder session
2021-12-26 Gerhard Sittigconfigure: check libsigrokdecode version dependent...
2021-12-26 Gerhard Sittigir_irmp: introduce IRMP test cases, cover NEC/RC5/RC6...
2021-06-16 Gerhard Sittigdoc: update IRC reference to Libera.Chat
2021-01-13 Ben Gardinerseven_segment: expand the alphabet and show unknown...
2020-11-12 Gerhard Sittigparallel: add missing data file with expected output...
2020-11-11 Gerhard Sittigpdtest: use less expensive Python routine to get text...
...
heads
16 months ago master
4 years ago pr/srd-15-modbus-longaddr