add glib testing TAP utilities

This commit is contained in:
ailin-nemui 2017-11-26 16:19:31 +01:00
commit c20eddeb38
8 changed files with 828 additions and 3 deletions

View file

@ -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 \

View file

@ -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();
}