[PATCH weston v5 0/6] Refactored simple unit/integration test framework and corresponding test program.
Jon A. Cruz
jonc at osg.samsung.com
Sat Jun 20 15:47:42 PDT 2015
Here is another re-worked version of the patch adding unit testing
framework and corresponding separation. Aside from the
higher-level waycheck program this also updates one of the
existing unit test programs to the new framework.
Changes since v4:
- Changed junit reporter to use libxml2 for writing XML istead of doing so
directly.
Changes since v3:
- Cleaned up formatting of return types linebreaks and other misc style
issues.
- Many fixes from review comments on prior versions.
- Clarified test macro parameter names.
- Added test macros for NULL/non-NULL and C-style string comparison.
- Extended fixture construction to facilitate layering Weston-specific
fixtures.
- Track formats supported by wl_shm.
- Added convenience routines to capture running program name.
- Updated fixture construction, including being able to specify the Wayland
instance to connect to.
- Reduced Doxygen config files to non-defaults only.
- Relocated Doxygen specific input files to match Wayland structure.
Jon A. Cruz (6):
Added simple unit/integration test framework and corresponding
test program.
By default, stop test execution if unrecognized parameters are
encountered.
Enables output in the Test Anything Protocol (TAP) format.
Enables output in the JUnit XML format.
Converted the config parser test to the new framework.
Adding doxygen setup and info for the testing framework.
.gitignore | 5 +
Makefile.am | 109 +-
configure.ac | 6 +
doc/doxygen/devtools.dox | 55 +
doc/doxygen/tooldev.doxygen | 11 +
doc/doxygen/tools.dox | 32 +
doc/doxygen/tools.doxygen | 11 +
doc/doxygen/tools_arch_new.gv | 85 ++
doc/doxygen/tools_arch_old.gv | 53 +
tests/config-parser-test.c | 368 ++++--
tools/waycheck/moretest.c | 92 ++
tools/waycheck/rough_draw.c | 275 +++++
tools/waycheck/rough_draw.h | 65 +
tools/waycheck/waycheck.c | 437 +++++++
tools/waycheck/waycheck.dox | 29 +
tools/wayland_fixtures/inc/wtst_fixtures.h | 282 +++++
tools/wayland_fixtures/src/wtst_fixtures.c | 1117 ++++++++++++++++++
tools/zunitc/doc/zunitc.dox | 141 +++
tools/zunitc/inc/zunitc/zunitc.h | 703 +++++++++++
tools/zunitc/inc/zunitc/zunitc_impl.h | 105 ++
tools/zunitc/src/main.c | 58 +
tools/zunitc/src/zuc_base_logger.c | 404 +++++++
tools/zunitc/src/zuc_base_logger.h | 38 +
tools/zunitc/src/zuc_collector.c | 427 +++++++
tools/zunitc/src/zuc_collector.h | 58 +
tools/zunitc/src/zuc_context.h | 58 +
tools/zunitc/src/zuc_event.h | 86 ++
tools/zunitc/src/zuc_event_listener.h | 174 +++
tools/zunitc/src/zuc_junit_reporter.c | 464 ++++++++
tools/zunitc/src/zuc_junit_reporter.h | 38 +
tools/zunitc/src/zuc_tap_logger.c | 265 +++++
tools/zunitc/src/zuc_tap_logger.h | 39 +
tools/zunitc/src/zuc_types.h | 80 ++
tools/zunitc/src/zunitc_impl.c | 1765 ++++++++++++++++++++++++++++
tools/zunitc/test/fixtures_test.c | 107 ++
tools/zunitc/test/zunitc_test.c | 459 ++++++++
36 files changed, 8433 insertions(+), 68 deletions(-)
create mode 100644 doc/doxygen/devtools.dox
create mode 100644 doc/doxygen/tooldev.doxygen
create mode 100644 doc/doxygen/tools.dox
create mode 100644 doc/doxygen/tools.doxygen
create mode 100644 doc/doxygen/tools_arch_new.gv
create mode 100644 doc/doxygen/tools_arch_old.gv
create mode 100644 tools/waycheck/moretest.c
create mode 100644 tools/waycheck/rough_draw.c
create mode 100644 tools/waycheck/rough_draw.h
create mode 100644 tools/waycheck/waycheck.c
create mode 100644 tools/waycheck/waycheck.dox
create mode 100644 tools/wayland_fixtures/inc/wtst_fixtures.h
create mode 100644 tools/wayland_fixtures/src/wtst_fixtures.c
create mode 100644 tools/zunitc/doc/zunitc.dox
create mode 100644 tools/zunitc/inc/zunitc/zunitc.h
create mode 100644 tools/zunitc/inc/zunitc/zunitc_impl.h
create mode 100644 tools/zunitc/src/main.c
create mode 100644 tools/zunitc/src/zuc_base_logger.c
create mode 100644 tools/zunitc/src/zuc_base_logger.h
create mode 100644 tools/zunitc/src/zuc_collector.c
create mode 100644 tools/zunitc/src/zuc_collector.h
create mode 100644 tools/zunitc/src/zuc_context.h
create mode 100644 tools/zunitc/src/zuc_event.h
create mode 100644 tools/zunitc/src/zuc_event_listener.h
create mode 100644 tools/zunitc/src/zuc_junit_reporter.c
create mode 100644 tools/zunitc/src/zuc_junit_reporter.h
create mode 100644 tools/zunitc/src/zuc_tap_logger.c
create mode 100644 tools/zunitc/src/zuc_tap_logger.h
create mode 100644 tools/zunitc/src/zuc_types.h
create mode 100644 tools/zunitc/src/zunitc_impl.c
create mode 100644 tools/zunitc/test/fixtures_test.c
create mode 100644 tools/zunitc/test/zunitc_test.c
--
2.1.0
More information about the wayland-devel
mailing list