[PATCH v4 0/6] Refactored simple unit/integration test framework and corresponding test program.

Jon A. Cruz jonc at osg.samsung.com
Thu Jun 11 22:01:26 PDT 2015


Supersedes:
[PATCH weston v3 0/5] Refactored simple unit/integration test framework and corresponding test program.

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 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                                |  100 +-
 doc/doxygen/devtools.dox                   |   52 +
 doc/doxygen/tooldev.doxygen                |   11 +
 doc/doxygen/tools.dox                      |   29 +
 doc/doxygen/tools.doxygen                  |   11 +
 doc/doxygen/tools_arch_new.gv              |   82 ++
 doc/doxygen/tools_arch_old.gv              |   50 +
 tests/config-parser-test.c                 |  368 ++++--
 tools/waycheck/moretest.c                  |   89 ++
 tools/waycheck/rough_draw.c                |  273 +++++
 tools/waycheck/rough_draw.h                |   62 +
 tools/waycheck/waycheck.c                  |  435 +++++++
 tools/waycheck/waycheck.dox                |   29 +
 tools/wayland_fixtures/inc/wtst_fixtures.h |  279 +++++
 tools/wayland_fixtures/src/wtst_fixtures.c | 1115 ++++++++++++++++++
 tools/zunitc/doc/zunitc.dox                |  138 +++
 tools/zunitc/inc/zunitc/zunitc.h           |  698 +++++++++++
 tools/zunitc/inc/zunitc/zunitc_impl.h      |  102 ++
 tools/zunitc/src/main.c                    |   55 +
 tools/zunitc/src/zuc_base_logger.c         |  401 +++++++
 tools/zunitc/src/zuc_base_logger.h         |   35 +
 tools/zunitc/src/zuc_collector.c           |  424 +++++++
 tools/zunitc/src/zuc_collector.h           |   55 +
 tools/zunitc/src/zuc_context.h             |   55 +
 tools/zunitc/src/zuc_event.h               |   83 ++
 tools/zunitc/src/zuc_event_listener.h      |  171 +++
 tools/zunitc/src/zuc_junit_reporter.c      |  473 ++++++++
 tools/zunitc/src/zuc_junit_reporter.h      |   35 +
 tools/zunitc/src/zuc_tap_logger.c          |  262 +++++
 tools/zunitc/src/zuc_tap_logger.h          |   36 +
 tools/zunitc/src/zuc_types.h               |   77 ++
 tools/zunitc/src/zunitc_impl.c             | 1751 ++++++++++++++++++++++++++++
 tools/zunitc/test/fixtures_test.c          |  104 ++
 tools/zunitc/test/zunitc_test.c            |  456 ++++++++
 35 files changed, 8333 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