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/nrf24l01/test.conf | 80 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 decoder/test/nrf24l01/test.conf (limited to 'decoder/test/nrf24l01/test.conf') diff --git a/decoder/test/nrf24l01/test.conf b/decoder/test/nrf24l01/test.conf new file mode 100644 index 0000000..986d30d --- /dev/null +++ b/decoder/test/nrf24l01/test.conf @@ -0,0 +1,80 @@ +test activate + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-activate.sr + output nrf24l01 annotation class cmd match nrf24l01_activate_cmd.output + output nrf24l01 annotation class warning match nrf24l01_activate_warning.output + +test communication-rx + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-communication-rx.sr + output nrf24l01 annotation class rx-data match nrf24l01_communication_rx.output + +test communication-tx + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-communication-tx.sr + output nrf24l01 annotation class tx-data match nrf24l01_communication_tx.output + +test excess-bytes + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-excess-bytes.sr + output nrf24l01 annotation class warning match nrf24l01_excess_bytes_warning.output + +test misc + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-misc.sr + output nrf24l01 annotation class cmd match nrf24l01_misc_cmd.output + output nrf24l01 annotation class tx-data match nrf24l01_misc_tx_data.output + output nrf24l01 annotation class register match nrf24l01_misc_register.output + output nrf24l01 annotation class warning match nrf24l01_misc_warning.output + +test missing-bytes + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-missing-bytes.sr + output nrf24l01 annotation class warning match nrf24l01_missing_bytes_warning.output + +test no-command + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-no-command.sr + output nrf24l01 annotation class register match nrf24l01_no_command_register.output + +test no-mosi + protocol-decoder spi channel cs=0 channel clk=1 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-no-command.sr + output nrf24l01 exception match ChannelError + +test no-miso + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-no-command.sr + output nrf24l01 exception match ChannelError + +test unknown-command + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-unknown-command.sr + output nrf24l01 annotation class warning match nrf24l01_unknown_command_warning.output + +test unknown-register + protocol-decoder spi channel cs=0 channel clk=1 channel mosi=2 channel miso=3 + protocol-decoder nrf24l01 + stack spi nrf24l01 + input spi/nrf24l01/nrf24l01-test-unknown-register.sr + output nrf24l01 annotation class warning match nrf24l01_unknown_register_warning.output -- cgit v1.2.3-54-g00ecf