summaryrefslogtreecommitdiff
path: root/decoder/test/iec
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2017-02-26 17:37:22 +0100
committerGerhard Sittig <gerhard.sittig@gmx.net>2017-02-27 22:57:35 +0100
commit31ddb2fea0f6c1e0241ae92222cc20c801bda2f5 (patch)
tree59d5846c7ae41e950adefb210a568dcbc9866188 /decoder/test/iec
parent59060ffcaada7201ad6942ce2c9bb67361ccbddd (diff)
downloadsigrok-test-31ddb2fea0f6c1e0241ae92222cc20c801bda2f5.tar.gz
sigrok-test-31ddb2fea0f6c1e0241ae92222cc20c801bda2f5.zip
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.
Diffstat (limited to 'decoder/test/iec')
0 files changed, 0 insertions, 0 deletions