summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-11-26 16:19:31 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-12-07 12:06:20 +0100
commitc20eddeb385974d6f46494e71ab63d4493df119b (patch)
treecd81ca55f807afdfbd6999c220388942d7793cd1 /tests
parent1328e1ba08430b0eaa589919272d732bb84a6921 (diff)
downloadirssi-c20eddeb385974d6f46494e71ab63d4493df119b.zip
add glib testing TAP utilities
Diffstat (limited to 'tests')
-rw-r--r--tests/irc/core/Makefile.am5
-rw-r--r--tests/irc/core/test-irc.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/irc/core/Makefile.am b/tests/irc/core/Makefile.am
index fff2a246..b5345067 100644
--- a/tests/irc/core/Makefile.am
+++ b/tests/irc/core/Makefile.am
@@ -1,11 +1,12 @@
+include $(top_srcdir)/utils/glib-tap.mk
+
AM_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/core \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
$(GLIB_CFLAGS)
-TESTS = test-irc
-check_PROGRAMS = test-irc
+test_programs = test-irc
test_irc_CPPFLAGS = \
-I$(top_srcdir)/src/irc/core \
diff --git a/tests/irc/core/test-irc.c b/tests/irc/core/test-irc.c
index 7e85c9ba..4c62e6a7 100644
--- a/tests/irc/core/test-irc.c
+++ b/tests/irc/core/test-irc.c
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
g_test_add_func("/test/event_get_param", test_event_get_param);
g_test_add_func("/test/event_get_params", test_event_get_params);
+ g_test_set_nonfatal_assertions();
return g_test_run();
}