From dd37a782a8637bdee703a13c949b222b9ba8b95d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 1 Sep 2014 18:23:54 +0200 Subject: Add initial set of PD tests. This is a slightly modified version of the PD test suite that was part of libsigrokdecode previously. --- decoder/test/spi/test.conf | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 decoder/test/spi/test.conf (limited to 'decoder/test/spi/test.conf') diff --git a/decoder/test/spi/test.conf b/decoder/test/spi/test.conf new file mode 100644 index 0000000..a74611d --- /dev/null +++ b/decoder/test/spi/test.conf @@ -0,0 +1,43 @@ +test atmega32_00 + protocol-decoder spi channel cs=0 channel mosi=1 channel clk=2 + input spi/spi_atmega32/spi_atmega32_00.sr + output spi annotation class mosi-data match atmega32_00_mosi.output + output spi annotation class miso-data match atmega32_00_miso.output + +test mx25l1605d_probe + protocol-decoder spi channel cs=0 channel miso=1 channel clk=2 channel mosi=3 + input spi/mx25l1605d/mx25l1605d_probe.sr + output spi annotation class mosi-data match mx25l1605d_probe_mosi.output + output spi annotation class miso-data match mx25l1605d_probe_miso.output + output spi annotation match mx25l1605d_probe.output + +test count_mosi_msb + protocol-decoder spi channel cs=1 channel clk=0 channel mosi=2 + input spi/spi-count-msb.sr + output spi annotation class mosi-data match spi_count_mosi_msb.output + +test count_miso_msb + protocol-decoder spi channel cs=1 channel clk=0 channel miso=2 + input spi/spi-count-msb.sr + output spi annotation class miso-data match spi_count_miso_msb.output + +test count_mosi_lsb + protocol-decoder spi channel cs=1 channel clk=0 channel mosi=2 option bitorder=lsb-first + input spi/spi-count-lsb.sr + output spi annotation class mosi-data match spi_count_mosi_lsb.output + +test count_miso_lsb + protocol-decoder spi channel cs=1 channel clk=0 channel miso=2 option bitorder=lsb-first + input spi/spi-count-lsb.sr + output spi annotation class mosi-data match spi_count_miso_lsb.output + +test exception_samplerate + protocol-decoder spi + input misc/no-samplerate.sr + output spi exception match SamplerateError + +test exception_channel + protocol-decoder spi channel cs=1 channel clk=0 + input spi/spi-count-msb.sr + output spi exception match ChannelError + -- cgit v1.2.3-54-g00ecf