summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2013-09-01 14:54:51 -0400
committerDana Jansens <danakj@orodu.net>2013-09-01 15:15:53 -0400
commit047a201498c4a108961a3d38e0707b78be378355 (patch)
tree65a1b3476bf8ffd153ec18a11e9aacf29a9c814b /Makefile.am
parent4c071270749c85b547fefe33c20c151f06df0616 (diff)
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.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am18
1 files changed, 18 insertions, 0 deletions
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 ##