summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-12-09srd_decoder_doc_get(): Add an additional sanity check.Uwe Hermann
2018-10-21Fix GVariant memory leaks in session test codeJon Burgess
==187759== 88 (40 direct, 48 indirect) bytes in 1 blocks are definitely lost in loss record 2,262 of 3,218 ==187759== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299) ==187759== by 0x563C435: g_malloc (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187759== by 0x5654056: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187759== by 0x5673630: g_variant_new_from_bytes (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187759== by 0x566C5E6: ??? (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187759== by 0x566C7D2: g_variant_new_uint64 (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187759== by 0x403D41: conf_check_fail.constprop.6 (session.c:152) ==187759== by 0x403E06: test_session_metadata_set_bogus (session.c:215) ==187759== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0) ==187759== by 0x401237: main (main.c:51)
2018-10-21Fix memory leak in decoder test codeJon Burgess
==187724== 917 bytes in 1 blocks are definitely lost in loss record 3,046 of 3,207 ==187724== at 0x4C2EBAB: malloc (vg_replace_malloc.c:299) ==187724== by 0x563C435: g_malloc (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187724== by 0x5655D82: g_strdup (in /usr/lib64/libglib-2.0.so.0.5600.3) ==187724== by 0x4E43937: py_str_as_str (util.c:371) ==187724== by 0x4E415E1: srd_decoder_doc_get (decoder.c:892) ==187724== by 0x40281D: test_doc_get (decoder.c:395) ==187724== by 0x53E51D5: srunner_run_tagged (in /usr/lib64/libcheck.so.0.0.0) ==187724== by 0x401237: main (main.c:51)
2018-03-31test: add simple "no data" test case for decoder "terminate and reset"Gerhard Sittig
Introduce a "reset" group of tests. Whip up a first test step which runs the "terminate and reset" routine for decoder stacks after session creation, start, and meta data setup. No input data gets processed, no decoder output is tested yet.
2017-01-07license: remove FSF postal address from boiler plate license textGerhard Sittig
Remove the FSF postal address as it might change (it did in the past). Reference the gnu.org website instead which is more stable.
2015-11-03tests/decoder.c: Add some srd_decoder_unload*() tests.Uwe Hermann
2015-10-03tests: Do not reference parent directory in includesDaniel Elstner
Rely on the compiler include path instead.
2015-10-03tests: Rename DECODERS_DIR to DECODERS_TESTDIRDaniel Elstner
Avoid confusion resulting from using the same macro name for different purposes.
2015-09-13Build: Include <config.h> first in all source filesDaniel Elstner
Since Autoconf places some important feature flags only into the configuration header, it is necessary to include it globally to guarantee a consistent build.
2015-04-07Fix a bunch of typos.Uwe Hermann
2015-04-01unit tests: Drop unneeded check_ filename prefix.Uwe Hermann
2015-01-31unit tests: Disable timeout for one of the test cases.Uwe Hermann
This one can take a while, thus disable the timeout.
2014-09-01PD tests moved into the sigrok-test repo.Uwe Hermann
Drop them from the libsigrokdecode repository.
2014-08-14tests: Factor out srdtest_setup() / srdtest_teardown().Uwe Hermann
2014-08-14Whitespace and consistency fixes.Uwe Hermann
2014-07-31tests/pdtest: Small fix to make it work with Python 3.2.Uwe Hermann
Python 3.2 doesn't yet have the copy() method for lists: AttributeError: 'list' object has no attribute 'copy'
2014-07-31tests/check_session.c: Fix compiler warning.Uwe Hermann
This fixes 'warning: "_POSIX_C_SOURCE" redefined' with some Python versions.
2014-07-20runtc: Update to the new libsigrok session API.Uwe Hermann
(also fixes the build for libsigrokdecode)
2014-07-08pdtest: Use new exception output.Bert Vermeulen
2014-07-08Remove dependency on Python.h from public API headerMarcus Comstedt
This prevents Python.h from being included into client code, where it can mess things up by e.g. redefining _POSIX_C_SOURCE.
2014-07-08runtc: Fix incorrect include directiveMarcus Comstedt
runtc.c used to try to include "../config.h". This only works when building in the source tree, otherwise there is no config.h in the parent directory of runtc.c. However, the explicit path is unnecessary since the build directory (whether the same as the source directory or not) will always be added to the include path.
2014-06-26runtc: PD option value is a GVariant, not string.Bert Vermeulen
This is still broken: it needs to properly check the expected type of the option, not just blindly assume G_VARIANT_TYPE_STRING.
2014-06-24pdtest: Generate report regardless of verbose mode.Bert Vermeulen
2014-06-24pdtest: Generate a report listing missed lines across the whole PD.Bert Vermeulen
2014-06-23pdtest/runtc: Support for output type 'exception'.Bert Vermeulen
The match value should be the name of the exception thrown, e.g. AttributeError, IndexError or even a custom exception defined in the protocol decoder, such as SamplerateError.
2014-05-23runtc.c: Fix compiler warningKumar Abhishek
c was of type char, while getopt returns an int. This caused a compiler warning during build.
2014-05-03Don't define names ending with _t (POSIX reserved).Uwe Hermann
Avoid defining any names ending in _t, those are generally reserved for POSIX usage. For details see: http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
2014-05-03tests/check_session.c: Use UINT64_MAX.Uwe Hermann
2014-04-13Rename 'probe' to 'channel' everywhere.Uwe Hermann
Variables of type 'struct srd_channel *' are consistently named 'pdch' to make them easily distinguishable from libsigrok's 'struct sr_channel *' variables that are consistently named 'ch'.
2014-04-13Switch to a non-recursive automake setup.Uwe Hermann
(fewer files, less clutter)
2014-03-20pdtest: Add support for code coverage.Bert Vermeulen
2014-03-20runtc: Add list of missed lines to coverage output.Bert Vermeulen
2014-03-17Add support for code coverage of used decoder modules.Bert Vermeulen
2014-03-14pdtest: Small fix.Bert Vermeulen
2014-02-24Make the data unit size configurableDaniel Elstner
2014-02-01Fix more warnings exposed by -Wmissing-prototypes.Uwe Hermann
2014-01-30Fix warnings exposed by -Wmissing-prototypes.Uwe Hermann
2014-01-28tests/pdtest: Fix -R (takes an argument).Uwe Hermann
2014-01-28tests/runtc.c: Minor whitespace fixes.Uwe Hermann
2014-01-28tests/pdtest: Add missing license header.Uwe Hermann
2014-01-28tests/pdtest: Fix shebang line.Uwe Hermann
2013-12-22runtc: Fix conditional build on non-Linux systems.Bert Vermeulen
2013-12-18Don't install runtc.Arkadiusz Miśkiewicz
Don't install runtc. Not meant for generic usage. Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
2013-12-18runtc: Output binary as ASCII timestamp/class/hex bytes instead.Bert Vermeulen
This allows for verifying timestamps and classes as well.
2013-12-15runtc: Make sure to compile against this libraryBert Vermeulen
It might compile against a previously-installed one unless the linker finds it in the top directory first.
2013-12-13pdtest/runtc: Add support for Python output types.Bert Vermeulen
2013-12-12pdtest/runtc: Add support for binary output types.Bert Vermeulen
2013-12-12pdtest: Add -f option to automatically fix failing tests.Bert Vermeulen
2013-12-12runtc: Add support for binary output.Bert Vermeulen
2013-12-11runtc: Return errorcode according to testcase result.Bert Vermeulen