From 047a201498c4a108961a3d38e0707b78be378355 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 1 Sep 2013 14:54:51 -0400 Subject: Fix bugs and add unit tests for BSEARCH() Also adds running unit tests to the release/go script so we can be sure that all tests pass before we make a release. --- Makefile.am | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c29e0420..b4389043 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,9 @@ bin_PROGRAMS = \ tools/gnome-panel-control/gnome-panel-control \ tools/obxprop/obxprop +noinst_PROGRAMS = \ + obt/obt_unittests + nodist_bin_SCRIPTS = \ data/xsession/openbox-session \ data/xsession/openbox-gnome-session \ @@ -308,6 +311,21 @@ openbox_openbox_SOURCES = \ openbox/window.c \ openbox/window.h +## obt_unittests ## + +obt_obt_unittests_CPPFLAGS = \ + $(GLIB_CFLAGS) \ + -DLOCALEDIR=\"$(localedir)\" \ + -DDATADIR=\"$(datadir)\" \ + -DCONFIGDIR=\"$(configdir)\" \ + -DG_LOG_DOMAIN=\"Obt-Unittests\" +obt_obt_unittests_LDADD = \ + $(GLIB_LIBS) \ + obt/libobt.la +obt_obt_unittests_LDFLAGS = -export-dynamic +obt_obt_unittests_SOURCES = \ + obt/unittest_base.c \ + obt/bsearch_unittest.c ## gnome-panel-control ## -- cgit v1.2.3