summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* zunitc: Fix undeclared identifier 'NULL'-2019-05-021-0/+1
| | | | | | Since v6 release, -Dtest-junit-xml=false build regressed because its ifdef branch no longer includes stddef.h and thus NULL, either directly or through another header. Using musl-1.1.22 and llvm-8.0.0.
* Rename zalloc.h to libweston/zalloc.hPekka Paalanen2019-04-184-5/+4
| | | | | | | | It is a public installed header used by libweston.h. See "Rename compositor.h to libweston/libweston.h" for rationale. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
* Rename config-parser.h to libweston/config-parser.hPekka Paalanen2019-04-181-1/+1
| | | | | | | | It is a public installed header used by libweston.h. See "Rename compositor.h to libweston/libweston.h" for rationale. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
* Fix typos all around (thanks codespell!)Emmanuel Gil Peyrot2019-02-201-2/+2
|
* tests: Mark tests as used so they don’t get removed at link timeEmmanuel Gil Peyrot2017-12-011-2/+2
| | | | | | | | | | Without this attribute, the test macros were making Weston fail to build with LTO enabled. Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de> Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> Tested-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
* zunitc: fix a typo in a commentAbdur Rehman2017-01-031-1/+1
| | | | | Signed-off-by: Abdur Rehman <arehmanq199@gmail.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
* zunitc: fix a couple of typosAbdur Rehman2017-01-031-1/+1
| | | | | | | | - even -> event - attatch -> attach Signed-off-by: Abdur Rehman <arehmanq199@gmail.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
* zunitc/junit-reporter: Silence pointer-sign warningQuentin Glidic2016-09-241-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>
* zunitc: use platform-independent macros for integer formattingEmmanuel Gil Peyrot2016-05-192-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>
* zunitc: fix spelling mistakeEric Engestrom2016-04-051-1/+1
| | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* zunitc: remove `break` after `return`Eric Engestrom2016-04-052-17/+0
| | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch>
* zunitc: made name of test fixture parameter explicit.Jon Cruz2015-10-233-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>
* zunitc: Clarify documentation on return behavior.Jon Cruz2015-10-232-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>
* Coding style fixesDawid Gajownik2015-08-071-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>
* Enables output in the JUnit XML format.Jon A. Cruz2015-07-173-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>
* zunitc: Fix minor typoBryce Harrington2015-07-141-1/+1
| | | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* zunitc: Fix some minor grammatical errors in doxBryce Harrington2015-07-141-2/+2
| | | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* zunitc: wrap dox to 80 columnsBryce Harrington2015-07-141-8/+22
| | | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Added simple unit/integration test framework and corresponding test program.Jon A. Cruz2015-07-0715-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>