summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2017-01-03zunitc: fix a typo in a commentAbdur Rehman1-1/+1
Signed-off-by: Abdur Rehman <arehmanq199@gmail.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
2017-01-03zunitc: fix a couple of typosAbdur Rehman1-1/+1
- even -> event - attatch -> attach Signed-off-by: Abdur Rehman <arehmanq199@gmail.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
2016-09-24zunitc/junit-reporter: Silence pointer-sign warningQuentin Glidic1-1/+7
/usr/x86_64-pc-linux-gnu/include/libxml2/libxml/xmlstring.h:35:18: warning: pointer targets in passing argument 3 of 'xmlStrPrintf' differ in signedness [-Wpointer-sign] #define BAD_CAST (xmlChar *) ^ tools/zunitc/src/zuc_junit_reporter.c:77:41: note: in expansion of macro 'BAD_CAST' xmlStrPrintf(scratch, sizeof(scratch), BAD_CAST %d, value); ^~~~~~~~ /usr/x86_64-pc-linux-gnu/include/libxml2/libxml/xmlstring.h:98:17: note: expected 'const char *' but argument is of type 'xmlChar * {aka unsigned char *}' xmlStrPrintf (xmlChar *buf, Warning produced by GCC 5.3, 6.1 and Clang 3.8. Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Armin Krezović <krezovic.armin@gmail.com> Tested-by: Armin Krezović <krezovic.armin@gmail.com>
2016-05-19zunitc: use platform-independent macros for integer formattingEmmanuel Gil Peyrot2-22/+27
Fixes warnings and potential issues on 32-bit platforms, tested only on ARM but I’d expect the same issue on i686. Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2016-04-05zunitc: fix spelling mistakeEric Engestrom1-1/+1
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2016-04-05zunitc: remove `break` after `return`Eric Engestrom2-17/+0
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
2015-10-23zunitc: made name of test fixture parameter explicit.Jon Cruz3-11/+26
Instead of using the implicit name 'data', changed the test with fixture macro ZUC_TEST_F() to use an additional value to explicitly set the name to use for test data from the fixture. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2015-10-23zunitc: Clarify documentation on return behavior.Jon Cruz2-39/+132
* Clarify documentation on ZUC_ASSERT_* behavior in regards to return vs. abort() * Added overview section on return behavior. * Fixed spelling * Removed outdated reference to tap function. Changes since v1: * Incorporated grammatical feedback. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2015-08-07Coding style fixesDawid Gajownik1-1/+2
- opening braces are on the same line as the if statement - opening braces are not on the same line as the function name - space between for/while/if and opening parenthesis Signed-off-by: Dawid Gajownik <gajownik@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
2015-07-17Enables output in the JUnit XML format.Jon A. Cruz3-0/+525
Adds basic support for optionally outputting in the XML format commonly used by JUnit compatible tools. This format is supported by default by many tools, including the Jenkins build system. It also is more detailed and captures more information than the more simplistic TAP format. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-07-14zunitc: Fix minor typoBryce Harrington1-1/+1
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-07-14zunitc: Fix some minor grammatical errors in doxBryce Harrington1-2/+2
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-07-14zunitc: wrap dox to 80 columnsBryce Harrington1-8/+22
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-07-07Added simple unit/integration test framework and corresponding test program.Jon A. Cruz15-0/+4471
Added a simple C-based test framework and an example program that uses it to run through some simple unit tests. This is new code inspired primarily by the approaches of Google Test, Boost Test, JUnit and TestNG. Factors of others were also considered during design and implementation. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>