Commit Graph
24 Commits
Author SHA1 Message Date
Carsten Schoenert 63924379e3 testdriver: switch linking to the shared library
The testdriver was linked against the statically generated library of
libcoap. By this the testdriver will *always* find any symbols, no
matter if it is a private or public symbol.
Due this the testing behavior isn't the same as a user would use the
shared library and can get a potentially pitfall even if the testdriver
was successful.

Due previous changes to the public header the testdriver source needs
now the local header coap_config.h to find all needed functions so there
are small changes needed to the source files.
2015-07-04 19:35:10 +02:00
Olaf Bergmann 774fc01ec1 tests: temporarily change log-level to remove expected warnings
Some unit tests in tests/test_options.c and tests/test_pdu.c check
for error cases, causing warning messages to be emitted by the
library code. As the expected result is checked separately, the
warnings can be suppressed to avoid confusion.
2015-06-07 12:32:09 +02:00
Olaf Bergmann 8e73295b66 tests/test_options.c: Added unit tests for option filters
A new test suite 'option filter' was added to the CUnit tests to
check correctness of the new option filter implementation.
2015-06-07 12:21:58 +02:00
Olaf Bergmann 83c17e8f17 testdriver.c: Remove comment on known bugs
With commit eec9ad2, the two outstanding bugs in the test suite
have been fixed.
2015-06-07 12:21:57 +02:00
Olaf Bergmann eb2251f06f Update boilerplate text in testdriver
The errors in the URI parser test suite have been fixed,
making the description in testdriver.c obsolete.
2015-03-09 18:30:20 +01:00
Olaf Bergmann 04e1d8e7de Make test data unsigned to shut up compiler warnings. 2015-03-09 14:59:22 +01:00
Olaf Bergmann fa3f09cdb7 Fix warnings in unit tests 2015-03-04 15:10:09 +01:00
Carsten Schoenert 96d875ab7a CFLAGS: reorder the various CFLAGS inside the files
Doing up some housekeeping around the used CFLAGS.
To be more generic put the default declaration for additional warning
CFLAGS into configure.ac and clean up the Makefile.am's.

There are the default CFLAGS variable that is a global variable if not
re adjusted inside the different targets.

The second variable for CFLAGS is the AM_CFLAGS definition that is used
inside a Makefile as a global variable.

There is also the possibility to graduate the CFLAGS for a single
target. But currently there are nothing more than one target within each
Makefile so we can set for now the target specific CFLAGS to the
AM_CFLAGS.

A new variable called WARNING_CFLAGS is inside the configure.ac created,
this variable holds all the warnings flags inside. The Makefile.am's are
taking the values and is setting the variable AM_CFLAGS which is used in
the target specific CFLAGS. Also the options 'DWITH_POSIX' and
'D_GNU_SOURCE' are now appended to the CFLAGS if the configure script is
detecting a *-[uc]linux* system.
2015-03-03 19:21:43 +01:00
Carsten Schoenert c9c1a80271 adding the tests/ folder to the build environment
To let the previous added configure option '--enable-tests' really build
the testdriver binary adding the needed changes to the files in the main
folder.
Finally adding a new Makefile.am within the tests/ folder.
2015-03-03 19:21:43 +01:00
Olaf Bergmann 652bdd5f63 resolved conflict after cherry-picking from branch relative-timestamps 2014-02-05 15:04:39 +01:00
Olaf Bergmann a4358bd2ce added tests for relative timestamps 2014-02-05 14:53:58 +01:00
Olaf Bergmann 160f570c6f include tests with distribution 2014-02-04 18:15:26 +01:00
Olaf Bergmann 660deefe73 Support for block-wise transfer of /.well-known/core. 2014-02-04 17:56:31 +01:00
Olaf Bergmann a391c9e9cb Fixed delta for Accept option.
The number has changed from 16 to 17 in coap-18.
2014-02-04 17:48:45 +01:00
Olaf Bergmann 05713f48e8 Unit tests for the new functionality of coap_print_link() and print_wellknown() 2014-01-07 17:37:49 +01:00
Olaf Bergmann ada296efaf added new test cases for error response generation
test t_error_response8 will fail when COAP_MAX_OPT < 2000
2013-09-03 14:07:16 +02:00
Olaf Bergmann 5d9ba55303 option number for Accept has changed in coap-18, fixed test_encode_pdu5() 2013-09-03 13:51:30 +02:00
Olaf Bergmann b376fccf2d add missing licensing information when creating tar archive 2013-01-24 16:59:26 +01:00
Olaf Bergmann 5026b5e59a more tests 2013-01-18 16:44:36 +01:00
Olaf Bergmann 961a0b0e4d check default hash value for '.well-known/core' 2013-01-18 15:20:39 +01:00
Olaf Bergmann 3e0c8280c9 more tests 2013-01-15 16:51:12 +01:00
Olaf Bergmann cd10925056 modified option parser 2013-01-11 11:32:22 +01:00
Olaf Bergmann 019a922918 document known bugs 2013-01-07 17:48:09 +01:00
Olaf Bergmann c6412f2038 Rework of option parser to support "Klaus encoding" (coap-13), unit tests
The subdirectory "tests" now contains a growing set of unit tests for the
libcoap API. To use this, you will need CUnit (see http://cunit.sourceforge.net)
and must configure with the option --with-tests.
2013-01-07 17:37:49 +01:00