fenugrec [Fri, 27 Apr 2018 14:04:41 +0000 (10:04 -0400)]
runtc: print errors at more failure points
run_testcase() can fail in many ways and just cause runtc to return 1,
at least now it doesn't do so silently.
fenugrec [Fri, 27 Apr 2018 14:26:29 +0000 (10:26 -0400)]
Add test for mcs48 decoder
George Hopkins [Thu, 30 Nov 2017 16:23:13 +0000 (17:23 +0100)]
jtag_stm32: Update testcases
Due to bug #1066, the output of all DR/IR bits changed in
the underlying JTAG decoder.
George Hopkins [Thu, 30 Nov 2017 16:19:12 +0000 (17:19 +0100)]
jtag: Fix shifting of registers
As reported in bug #1066, the decoding of IR/DR bits was incorrect.
Uwe Hermann [Thu, 3 May 2018 13:09:09 +0000 (15:09 +0200)]
spiflash: Add an Adesto AT45DB161E test-case.
Gerhard Sittig [Mon, 23 Apr 2018 21:40:57 +0000 (23:40 +0200)]
dcf77: adjust test expectation (PD emits more "invalid" annotations)
The dcf77 decoder recently started emitting "invalid bit timing" and
"Invalid DCF77 bit number" annotations, and does display bit positions
of the 59th and subsequent pulse within a minute.
Uwe Hermann [Thu, 12 Apr 2018 07:28:33 +0000 (09:28 +0200)]
can: Update tests wrt the fix for bug #1085.
Uwe Hermann [Sun, 8 Apr 2018 16:39:14 +0000 (18:39 +0200)]
Add a few test-cases for rc_encode.
Uwe Hermann [Wed, 7 Mar 2018 00:12:03 +0000 (01:12 +0100)]
Add a few sda2506 test-cases.
Gerhard Sittig [Sat, 10 Feb 2018 15:50:07 +0000 (16:50 +0100)]
ir_nec: add test for the optional carrier detect feature
The IR-NEC decoder optionally can handle input streams that still have
the carrier signal. Add a test for this configuration, derived from the
test which uses the signal that had the carrier removed in hardware.
The same data is seen, just at different sample numbers. The content was
verified by means of the "cut -d ' ' -f 2-" and "diff" commands.
Gerhard Sittig [Tue, 13 Feb 2018 19:45:34 +0000 (20:45 +0100)]
graycode: add test for stream without sample rate
Use a smaller input stream which lacks a samplerate spec. This results
in output that lacks the timing information (motion speed), but step
count and direction are identical to the other existing test.
Gerhard Sittig [Sat, 10 Feb 2018 18:04:35 +0000 (19:04 +0100)]
stepper_motor: add test for input stream without sample rate
The stepper motor decoder can still determine the steps' directions
and count. Missing input sample rates just prevent the decoder from
outputting speed annotations. All other decoder output is identical.
Gerhard Sittig [Fri, 9 Feb 2018 06:08:59 +0000 (07:08 +0100)]
stepper_motor: lack of samplerate is not fatal any longer
Gerhard Sittig [Sat, 10 Feb 2018 17:28:03 +0000 (18:28 +0100)]
i2s: add test for stream without sample rate
Use a smaller input stream which lacks a samplerate spec. This results
in identical decoder output (the existing test did not cover throughput
annotations).
Gerhard Sittig [Fri, 9 Feb 2018 06:08:39 +0000 (07:08 +0100)]
i2s: lack of samplerate is not fatal any longer
Gerhard Sittig [Sat, 10 Feb 2018 16:22:01 +0000 (17:22 +0100)]
i2c: add test for input stream without sample rate (identical decoder output)
The existing test did not check the throughput annotation. Which is why
the decoder output is identical for input streams with and without a
sample rate specification.
Gerhard Sittig [Fri, 9 Feb 2018 06:07:58 +0000 (07:07 +0100)]
i2c: lack of samplerate is not fatal any longer
Gerhard Sittig [Wed, 24 Jan 2018 19:31:26 +0000 (20:31 +0100)]
ac97: introduce a basic test with the realtek alc655 snippet
Gerhard Sittig [Thu, 11 Jan 2018 06:05:34 +0000 (07:05 +0100)]
counter: use HD44780 dump to check counter's reset_edge option
Resetting counters depending on the LCD controller's R/S signal yields
numbers that correspond to byte sequences that either "control" hardware
(register access) or carry "data" (display text).
Provide a test case for the rising edge of RESET. Existing cases already
covered the falling edge of RESET which is the default.
Gerhard Sittig [Sat, 6 Jan 2018 10:12:52 +0000 (11:12 +0100)]
counter: adjust test config for renamed 'data_edge' option
Gerhard Sittig [Sat, 6 Jan 2018 09:54:22 +0000 (10:54 +0100)]
parallel: use HD44780 dump to test parallel's word demux feature
Uwe Hermann [Wed, 3 Jan 2018 16:30:36 +0000 (17:30 +0100)]
Add some counter test-cases.
Gerhard Sittig [Wed, 27 Dec 2017 16:50:14 +0000 (17:50 +0100)]
parallel: adjust hex number format of expected PD output
The parallel decoder got adjusted to emit annotations for "items" and
"words" in a unified format (consistent width, leading zeroes). Adjust
the test expectation to match the PD implementation.
Gerhard Sittig [Fri, 22 Dec 2017 18:00:43 +0000 (19:00 +0100)]
usb_power_delivery: fixup order of combined annotation text fragments
The USB power delivery decoder got adjusted to construct complex
annotations that consisted of several text fragments in a reproducible
order. Adjust the test expectation to match the PD implementation.
Uwe Hermann [Sat, 9 Dec 2017 16:17:29 +0000 (17:17 +0100)]
Add some graycode test-cases.
Marcus Comstedt [Mon, 20 Nov 2017 19:56:10 +0000 (20:56 +0100)]
maple_bus: Add a simple test-case.
Uwe Hermann [Sat, 11 Nov 2017 17:45:19 +0000 (18:45 +0100)]
i2s: Update wav output (PD now emits 32bit samples).
Soeren Apel [Tue, 31 Oct 2017 20:40:25 +0000 (21:40 +0100)]
Adjust ds2432 test cases to the rename to ds243x
Kevin Redon [Thu, 19 Oct 2017 07:00:53 +0000 (09:00 +0200)]
Add a DS2432 test-case.
This fixes (parts of) bug #1019.
Uwe Hermann [Tue, 25 Jul 2017 06:28:01 +0000 (08:28 +0200)]
usb_{signalling,packet,request}: Add another test-case.
Gerhard Sittig [Sun, 2 Jul 2017 14:54:48 +0000 (16:54 +0200)]
can: catch up with sample number changes after clock sync introduction
The CAN decoder got adjusted to synchronize to the input stream's clock.
Catch up in the test expectation.
Gerhard Sittig [Sun, 18 Jun 2017 20:52:08 +0000 (22:52 +0200)]
onewire_network: Adjust test expectation for sample number fix in the PD
The start sample number of onewire network decoder annotations got fixed
in the decoder implementation (used to start one bit late). Catch up in
the test expectation.
Gerhard Sittig [Sun, 18 Jun 2017 20:15:29 +0000 (22:15 +0200)]
pwm: Adjust binary output test for sample number fix in the PD
The previous implementation used the period counter instead of the
period's actual start and end sample number. The implementation got
fixed, catch up in the test expectation.
Uwe Hermann [Fri, 16 Jun 2017 14:20:00 +0000 (16:20 +0200)]
dsi: Update due to recent minor PD changes.
Uwe Hermann [Thu, 15 Jun 2017 19:26:43 +0000 (21:26 +0200)]
pwm: Add a few more test-cases.
Gerhard Sittig [Tue, 6 Jun 2017 21:09:44 +0000 (23:09 +0200)]
spi: Missing samplerate spec is not fatal
Remove the "exception_samplerate" test for the SPI decoder. Lack of a
samplerate specification only breaks the emission of the throughput
annotations, but still allows decoding the clocked signal.
Uwe Hermann [Tue, 6 Jun 2017 12:39:57 +0000 (14:39 +0200)]
Bump requirements to libsigrok/libsigrokdecode 0.5.0.
Uwe Hermann [Tue, 6 Jun 2017 10:49:42 +0000 (12:49 +0200)]
Rename eeprom93cxx to eeprom93xx.
Uwe Hermann [Mon, 5 Jun 2017 22:09:45 +0000 (00:09 +0200)]
Add support for initial pin settings.
Adapt all tests that require it to use the old behaviour of assuming an
initial pin value of 0 (or whatever was previously hardcoded in the PD).
for now (this will likely see some changes later).
Uwe Hermann [Mon, 5 Jun 2017 22:42:47 +0000 (00:42 +0200)]
swd: Add missing channels.
Uwe Hermann [Mon, 5 Jun 2017 22:08:07 +0000 (00:08 +0200)]
Fix issue in -s output.
Option values are strings, not numbers.
This fixes:
$ ./decoder/pdtest -s jitter
Testcase: jitter/toim4243
Protocol decoder: jitter
Channel clk=3
Channel sig=2
Error: %d format: a number is required, not str
Uwe Hermann [Mon, 5 Jun 2017 15:04:06 +0000 (17:04 +0200)]
ds28ea00: Update due to decoder rename.
Uwe Hermann [Fri, 26 May 2017 13:57:49 +0000 (15:57 +0200)]
can: Update test results wrt recent PD changes.
Uwe Hermann [Thu, 25 May 2017 21:48:38 +0000 (23:48 +0200)]
can: Update wrt new PD warnings.
Wolfram Sang [Sun, 14 May 2017 09:30:15 +0000 (11:30 +0200)]
sdcard_sd: add CMD23 test
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Wolfram Sang [Fri, 12 May 2017 11:58:29 +0000 (13:58 +0200)]
sdcard_sd: correct cmd numbers when prefixing responses
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Uwe Hermann [Sat, 13 May 2017 14:12:06 +0000 (16:12 +0200)]
timing: Update tests, add some more.
Karl Palsson [Tue, 11 Apr 2017 22:14:16 +0000 (22:14 +0000)]
timing: add tests for noaverage/edge/delta modes
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Karl Palsson [Tue, 11 Apr 2017 21:31:10 +0000 (21:31 +0000)]
args: make pdtest -l behave as advertised.
Help says -l should list tests. Make it do so.
You can still do "-l uart" to see only uart tests, but -l by itself now
does what you expect.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Wolfram Sang [Wed, 3 May 2017 19:16:11 +0000 (21:16 +0200)]
pdtest: say that '-f' creates initial output for new tests
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Uwe Hermann [Wed, 3 May 2017 20:27:51 +0000 (22:27 +0200)]
Add an eeprom93cxx test-case.
Uwe Hermann [Wed, 3 May 2017 20:09:17 +0000 (22:09 +0200)]
Add a microwire test-case.
Uwe Hermann [Tue, 2 May 2017 18:18:22 +0000 (20:18 +0200)]
sdcard_sd: Update to reflect recent PD changes.
Uwe Hermann [Thu, 6 Apr 2017 19:45:00 +0000 (21:45 +0200)]
onewire_network: Add more test-cases.
Uwe Hermann [Thu, 6 Apr 2017 19:44:40 +0000 (21:44 +0200)]
onewire_link: Add more test-cases.
King Kévin [Sun, 26 Mar 2017 17:17:40 +0000 (19:17 +0200)]
Adjust tests for the new onewire_link decoder
Time slots and reset pulse/presence detect end timestamps were off by 1 us.
Additional warnings have been added for glitches.
Incomplete starting patterns are ignored.
Uwe Hermann [Tue, 28 Mar 2017 21:55:22 +0000 (23:55 +0200)]
Add a Sensirion SHT3x test-case.
Uwe Hermann [Tue, 28 Mar 2017 21:47:58 +0000 (23:47 +0200)]
Add a Sensirion SHT2x test-case.
Uwe Hermann [Tue, 28 Mar 2017 19:25:04 +0000 (21:25 +0200)]
eeprom24xx: Add Xicor X24C02 test-case.
Uwe Hermann [Tue, 14 Mar 2017 22:48:07 +0000 (23:48 +0100)]
Add a DALI test-case.
Uwe Hermann [Tue, 14 Mar 2017 22:47:57 +0000 (23:47 +0100)]
Add a DSI test-case.
Uwe Hermann [Sun, 5 Mar 2017 16:13:38 +0000 (17:13 +0100)]
configure summary: Show linker flags.
Gerhard Sittig [Sun, 26 Feb 2017 16:37:22 +0000 (17:37 +0100)]
runtc: unbreak the protocol decoder output match logic (type vs instance)
Recent libsigrokdecode adjustment changed decoder output. The ID of a
protocol decoder instance need no longer match the decoder type's name
even for simple setups.
Lookup the selected decoder's instance ID during construction of the
decoder stack. Such that the selected decoder's data can get identified
in the output of the stack which is received by runtc(1).
Note that this implementation passes the decoder type's name to the
runtc(1) output file, so that it keeps matching the expected .output
files when pdtest(1) compares those two streams. This approach avoids
the necessity to adjust test.conf or .output files. It will no longer
be appropriate when more complex test configurations shall be supported
which involve multiple instances of the same decoder type or multiple
stacks of decoders.
Gerhard Sittig [Sun, 26 Feb 2017 18:12:05 +0000 (19:12 +0100)]
runtc: fixup coding style (conditionals, braces)
When a conditional has one complex branch (multiple instructions), both
branches are supposed to have braces around them. Instead of putting
extra braces around single instructions, eliminate the "else" branch
since the "if" branch already ends in break or return respectively.
Gerhard Sittig [Sun, 26 Feb 2017 17:19:23 +0000 (18:19 +0100)]
runtc: minor nits in main()
Pass NULL instead of 0 where a pointer is expected. Fixup whitespace.
Gerhard Sittig [Sun, 26 Feb 2017 17:15:23 +0000 (18:15 +0100)]
runtc: minor nits in usage(), add missing options
Adjust the screen layout of usage() output: Align parameters to options
in identical ways, to separate them from descriptions for options which
don't take parameters. Add previously not listed options.
Uwe Hermann [Sat, 25 Feb 2017 15:10:49 +0000 (16:10 +0100)]
iec: Add a simple test-case.
Uwe Hermann [Mon, 20 Feb 2017 16:14:05 +0000 (17:14 +0100)]
Use PD ID (not PD instance ID) for now.
This is related to the libsigrokdecode change regarding bug #868.
Uwe Hermann [Tue, 14 Feb 2017 21:49:37 +0000 (22:49 +0100)]
adf435x: Add an initial test-case.
Uwe Hermann [Thu, 2 Feb 2017 23:45:21 +0000 (00:45 +0100)]
arm_tpiu: Fix confusing file and test-case naming.
Gerhard Sittig [Wed, 25 Jan 2017 20:05:03 +0000 (21:05 +0100)]
runtc, pdtest: Fixup minor style nits
Address several minor style nits: Remove trailing empty lines in source
files. Declare 'static' auto variables before non-static variables.
Re-use the result of a division instead of running the calculation again.
Gerhard Sittig [Wed, 25 Jan 2017 20:09:20 +0000 (21:09 +0100)]
pdtest: Make exit code communicate the termination cause not counts
On one hand the exit(3) API might limit the range of values that can get
communicated to callers (a single byte is used in some implementations).
On the other hand wait(2) might interpret specific meaning into some of
the returned values (abnormal cause of termination, like unhandled
signals). So the use of error counts as exit codes for processes can be
severely constrained. For specific non-zero values of error counts, an
exit code of zero might be seen at the caller's side (modulo calculation
or truncation).
Don't pass error or difference counts to exit(3). Instead communicate
the kind of termination (error or difference or success) in exit codes
which reliably can get evaluated by callers.
Gerhard Sittig [Wed, 25 Jan 2017 19:57:39 +0000 (20:57 +0100)]
pdtest: Exit non-zero for errors as well as PD output differences
Make the pdtest(1) executable return a non-zero exit code for errors
during test execution (as before) as well as for differences in the
decoder output (that's the change). Return either the number of errors
seen, or the number of tests which saw different output. Only return
zero in the absence of errors and differences.
Gerhard Sittig [Thu, 20 Oct 2016 07:40:53 +0000 (09:40 +0200)]
license: remove FSF postal address from boiler plate license text
Remove the FSF postal address as it might change (it did in the past).
Reference the gnu.org website instead which is more stable.
Gerhard Sittig [Mon, 26 Dec 2016 17:39:33 +0000 (18:39 +0100)]
avr-pdi: Add initial AVR PDI test case
Uwe Hermann [Mon, 7 Nov 2016 00:56:09 +0000 (01:56 +0100)]
spiflash: Update due to recent PD changes.
Uwe Hermann [Sun, 6 Nov 2016 14:54:44 +0000 (15:54 +0100)]
spiflash: Enforce chip selection for all test-cases.
Uwe Hermann [Fri, 4 Nov 2016 21:41:03 +0000 (22:41 +0100)]
ps2: Add an initial PS/2 keyboard test-case.
Uwe Hermann [Tue, 1 Nov 2016 23:11:41 +0000 (00:11 +0100)]
pdtest: Minor help text improvements.
Uwe Hermann [Sun, 23 Oct 2016 19:25:48 +0000 (21:25 +0200)]
spi: Add some test-cases for wordsize != 8.
Uwe Hermann [Sun, 23 Oct 2016 17:32:03 +0000 (19:32 +0200)]
uart: Update test-cases for recent UART PD changes.
Uwe Hermann [Sun, 23 Oct 2016 17:31:33 +0000 (19:31 +0200)]
uart: Make rxtx_overlapped test-case use format=hex.
Uwe Hermann [Sun, 23 Oct 2016 17:30:51 +0000 (19:30 +0200)]
uart: Explicitly select a format option for the tests.
Uwe Hermann [Wed, 19 Oct 2016 17:34:23 +0000 (19:34 +0200)]
uart: Add test-cases for 5n1, 6n1, 7n1, 8n1, 9n1.
Uwe Hermann [Wed, 12 Oct 2016 01:14:30 +0000 (03:14 +0200)]
Add a test-case for the GPIB decoder.
Chris [Mon, 12 Sep 2016 01:12:40 +0000 (18:12 -0700)]
midi: Add 3 new test-cases, update existing ones.
Chris [Mon, 5 Sep 2016 19:39:58 +0000 (12:39 -0700)]
midi: chromatic_notes in list.py was off by 1 octave
(ex: note 60 is middle C which is C4, not C3)
Uwe Hermann [Sat, 24 Sep 2016 10:21:16 +0000 (12:21 +0200)]
uart: Add a test-case for overlapping RX/TX bytes.
Chris [Sat, 27 Aug 2016 04:37:13 +0000 (21:37 -0700)]
midi: Update each annotation with multiple strings.
(ranging from long, medium, and short lengths)
Chris Dreher [Fri, 19 Aug 2016 17:26:02 +0000 (10:26 -0700)]
Add a lot more MIDI test-cases.
Code coverage increased to 98%, only 5 lines missed. 4 are from
handle_channel_msg_generic().
Uwe Hermann [Sun, 21 Aug 2016 22:07:42 +0000 (00:07 +0200)]
Add some SSI32 tests.
Chris Dreher [Sun, 21 Aug 2016 15:36:55 +0000 (17:36 +0200)]
README: Add missing autogen.sh call.
Chris Dreher [Sun, 21 Aug 2016 15:36:47 +0000 (17:36 +0200)]
Add Python 3.5 support.
Uwe Hermann [Wed, 6 Jul 2016 17:16:39 +0000 (19:16 +0200)]
Add a few DMX512 test-cases.
Uwe Hermann [Tue, 28 Jun 2016 20:20:31 +0000 (22:20 +0200)]
timing: Update to latest PD changes.
Uwe Hermann [Sun, 26 Jun 2016 12:39:25 +0000 (14:39 +0200)]
spiflash: Add a few more test-cases for dual I/O reads.
Uwe Hermann [Wed, 22 Jun 2016 17:55:19 +0000 (19:55 +0200)]
spiflash: Add a few more test-cases.
Uwe Hermann [Wed, 18 May 2016 16:20:45 +0000 (18:20 +0200)]
Add a few em4305 test-cases.
Uwe Hermann [Wed, 11 May 2016 18:24:19 +0000 (20:24 +0200)]
usb_request: Update PCAP files due to recent changes.
See bug #664 for details.
Sean Burford [Tue, 10 May 2016 08:30:08 +0000 (18:30 +1000)]
Add wiegand 36bit test