[PATCH util-macros 0/3] Add unit test support

Gaetan Nadon memsize at videotron.ca
Thu Mar 10 05:55:40 PST 2011


A handful of modules have begun adding unit test programs.
These macros will help providing a consistent interface which will
help package builders and developers to manage the functionality.

XORG_ENABLE_UNIT_TESTS will turn on/off unit testing, regardless
of how it is implemented. The default (yes/no) can be specified by each
module. It can be used by itself if glib or -wrap support is not needed.

XORG_WITH_GLIB will probe the system for glib-2.0. A different version
can be specified in each module. It will consult XORG_ENABLE_UNIT_TESTS
but can be used by itself in contexts other then unit testing.
The default (yes/no) can be specified by each module.

XORG_LD_WRAP will probe the linker for -wrap support. It will consult
XORG_ENABLE_UNIT_TESTS but can be used by itself in contexts
other then unit testing.

configure options:
  --enable-unit-tests     Enable building unit test cases (default: auto)
  --with-glib             Use GLib software utility library (default: auto)

Gaetan Nadon (3):
  XORG_ENABLE_UNIT_TESTS: add support for unit testing
  XORG_WITH_GLIB: check for the GLib package
  XORG_LD_WRAP: check if linker supports -wrap

 Makefile.am              |    2 +-
 ax_check_linker_flags.m4 |   77 +++++++++++++++++++++++++++++++++
 xorg-macros.m4.in        |  107 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 185 insertions(+), 1 deletions(-)
 create mode 100644 ax_check_linker_flags.m4



More information about the xorg-devel mailing list