summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-12-11runtc: Return errorcode according to testcase result.Bert Vermeulen
2013-12-11pdtest: Use -dd to turn on SR/SRD debugging.Bert Vermeulen
2013-12-11check: Make sure to test this set of decoders, not the installed ones.Bert Vermeulen
2013-12-11Load decoders from all search paths, not just the default.Bert Vermeulen
srd_decoder_load_all() was really only getting a list of decoders from the default (installation) path, so could not find uninstalled decoders, or those in a custom added search path. This broke development of new PDs when using the SIGROKDECODE_DIR environment variable, and broke many of the unit tests in the tests/ directory -- those actually tested against the already-installed decoders, not the ones about to be installed.
2013-12-11Clear decoder list after unloading, not just at exit.Bert Vermeulen
2013-12-11runtc: Make sure to test this set of decoders, not the installed ones.Bert Vermeulen
2013-12-11pdtest: Don't bother with diff if any error at all occurred.Bert Vermeulen
2013-12-11pdtest: Add option for custom sigrok-dumps repository path.Bert Vermeulen
2013-12-11pdtest: Always sanity-check all testcases.Bert Vermeulen
2013-12-11Clean up runtc build.Bert Vermeulen
This only compiles libsigrok into the one target that needs it, instead of slopping it all over the place.
2013-12-10Add protocol decoder testing framework.Bert Vermeulen
This adds a tool in the tests directory, called pdtest. It uses the "test/" directory in every PD directory, if present, to run the PD against dumps found in the sigrok-dumps repository, and compares the output against ".output" files in the "test/" directory. The file "test/test.conf" is used to configure which tests to run. A separate tool (tests/runtc.c) is used to run the actual decoding and report output. To get an overview of the options, run tests/pdtest without any options.
2013-12-10API clarification.Bert Vermeulen
2013-12-10Fix 'dist' make target.Bert Vermeulen
2013-12-09Avoid GError warning when unloading decoders.Bert Vermeulen
2013-12-09Support DESTDIR on install targets.Bert Vermeulen
Fixes bug 215.
2013-12-04parallel: start(): Drop obsoleted metadata parameter.Uwe Hermann
This fixes bug #202.
2013-12-03uart: Display non-ASCII characters properly.Uwe Hermann
We use the [XX] notation for non-printable characters, which is what various other logic analyzer software packages do too, e.g. the CWAV USBee Suite. This fixes bug #201.
2013-11-29Python 3.2 and portability fixes.Bert Vermeulen
2013-11-27Clean up autoconf leftover configuration.Bert Vermeulen
2013-11-27edid: Make sure to install the vendor list.Bert Vermeulen
2013-11-27Automate protocol decoder installation.Bert Vermeulen
This automatically figures out the files to install for each protocol decoder, without involving autotools. All python files (filenames ending in .py) are always installed. If a protocol decoder requires installation of a non-python file, a small file called 'config' can be created in that protocol decoder's directory, with the following content: # comments are ok extra-install vendorlist.txt commands.txt
2013-11-26Remove 64-probe limit.Bert Vermeulen
Fixes bug 120.
2013-11-19Add a missing #include.Uwe Hermann
This causes compiler errors in some setups otherwise, e.g.: CC libsigrokdecode_la-session.lo session.c: In function 'srd_session_metadata_set': session.c:195:46: error: expected ')' before 'PRIu64' srd_dbg("Setting session %d samplerate to %"PRIu64".", ^ session.c: In function 'srd_session_send': session.c:242:15: error: expected ')' before 'PRIu64' "number %" PRIu64 ", %" PRIu64 " bytes at 0x%p", ^
2013-11-18Turn off excessive loggingBert Vermeulen
2013-11-18Remove unreasonable testBert Vermeulen
2013-11-18Fix inverted condition on doc checkBert Vermeulen
2013-11-18Don't try to load an already-loaded moduleBert Vermeulen
Python silently uses the existing module anyway, but the library was counting it as an extra module. This was exposed by a test case in the test suite.
2013-11-18Don't decrease borrowed reference to probe definition dictBert Vermeulen
This fixes bug 177.
2013-11-18Fix inverted condition on decoder checkBert Vermeulen
2013-11-18Check library initialization before handling decodersBert Vermeulen
2013-11-18Clean up prototypesBert Vermeulen
2013-11-18Better error checking on session metadataBert Vermeulen
2013-11-16Only instance-related functionality remains, rename source fileBert Vermeulen
2013-11-16Move initialization/shutdown into srd.cBert Vermeulen
2013-11-16Move session-specific functionality into session.cBert Vermeulen
2013-11-16Minor cleanupBert Vermeulen
2013-11-15Move versioning info out to separate headerBert Vermeulen
2013-11-15Use OUTPUT_BINARY with four classes.Bert Vermeulen
2013-11-15Implement OUTPUT_BINARYBert Vermeulen
This requires the PD to have a tuple in its class called 'binary', which contains a list of strings describing the different binary classes it can output. For the SPI decoder this might be 'MOSI' and 'MISO', for example. The data is submitted to the frontend as struct srd_proto_data_binary, which contains the class that data belongs to.
2013-11-15Drop obsolete report() method.Bert Vermeulen
2013-11-15Drop outdated report: this should be handled by a frontend.Bert Vermeulen
2013-11-15Use the new Decoder.register() APIBert Vermeulen
2013-11-15Emit meta bitrateBert Vermeulen
2013-11-15Emit meta bitrateBert Vermeulen
2013-11-15Prune dead codeBert Vermeulen
2013-11-15Implement OUTPUT_METABert Vermeulen
This replaces the Decoder.add() method with Decoder.register(). The first argument is still output type, but all arguments are now optional: Decoder.register(output_type, id='someid', meta=(object-type, 'Name', 'Description')) 'id' defaults to the protocol decoder instance id, and only needs changing if a decoder chain needs to fork. 'object-type' refers to a Python object, such as int or str. After registering, the PD submits data as usual with Decoder.put(), with the only argument a value of the registered object-type.
2013-11-14Split annotation-specific output to another structBert Vermeulen
struct srd_proto_data was supposed to be independent of the output type, but a field specific to annotations snuck in there.
2013-11-07Minor code cleanupBert Vermeulen
2013-11-07Rename inter-PD output type to SRD_OUTPUT_PYTHONBert Vermeulen
This better reflects what it is: a python object generated and processed by python code.
2013-10-31unittests: Update to recent API changes.Uwe Hermann
srd_session_config_set() is now called srd_session_metadata_set(), and SRD_CONF_NUM_PROBES and SRD_CONF_UNITSIZE are dropped.