From 5bddfe7b7336f6b48408c72955dbcb664cc4dc97 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 4 Jan 2018 14:29:57 +0100 Subject: add new test skeleton --- tests/irc/flood/Makefile.am | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/irc/flood/Makefile.am (limited to 'tests/irc/flood/Makefile.am') diff --git a/tests/irc/flood/Makefile.am b/tests/irc/flood/Makefile.am new file mode 100644 index 00000000..4bc4a93c --- /dev/null +++ b/tests/irc/flood/Makefile.am @@ -0,0 +1,32 @@ +include $(top_srcdir)/utils/glib-tap.mk + +PACKAGE_STRING=irc/flood + +AM_CPPFLAGS = \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/core \ + -DSYSCONFDIR=\""$(sysconfdir)"\" \ + $(GLIB_CFLAGS) + +test_programs = \ + test-796 + +test_796_CPPFLAGS = \ + -I$(top_srcdir)/src/irc/core \ + -I$(top_srcdir)/src/irc/flood \ + $(AM_CPPFLAGS) + +test_796_DEPENDENCIES = \ + ../../../src/core/libcore.a \ + ../../../src/lib-config/libirssi_config.a + +test_796_LDADD = \ + ../../../src/irc/flood/libirc_flood.a \ + ../../../src/irc/core/libirc_core.a \ + ../../../src/core/libcore.a \ + ../../../src/lib-config/libirssi_config.a \ + @GLIB_LIBS@ \ + @OPENSSL_LIBS@ + +test_796_SOURCES = \ + test-796.c -- cgit v1.2.3 From c7cd49f8d7e83302c0f21f4449cddac528d28eea Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 4 Jan 2018 16:18:07 +0100 Subject: first bug case, exposes broken server object in chat-completion --- tests/irc/flood/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/irc/flood/Makefile.am') diff --git a/tests/irc/flood/Makefile.am b/tests/irc/flood/Makefile.am index 4bc4a93c..85b52eab 100644 --- a/tests/irc/flood/Makefile.am +++ b/tests/irc/flood/Makefile.am @@ -12,6 +12,7 @@ test_programs = \ test-796 test_796_CPPFLAGS = \ + -I$(top_srcdir)/src/fe-common/core \ -I$(top_srcdir)/src/irc/core \ -I$(top_srcdir)/src/irc/flood \ $(AM_CPPFLAGS) @@ -21,8 +22,15 @@ test_796_DEPENDENCIES = \ ../../../src/lib-config/libirssi_config.a test_796_LDADD = \ + ../../../src/irc/libirc.a \ + ../../../src/fe-common/irc/libfe_common_irc.a \ + ../../../src/fe-common/irc/dcc/libfe_irc_dcc.a \ + ../../../src/fe-common/irc/notifylist/libfe_irc_notifylist.a \ + ../../../src/irc/dcc/libirc_dcc.a \ + ../../../src/irc/notifylist/libirc_notifylist.a \ ../../../src/irc/flood/libirc_flood.a \ ../../../src/irc/core/libirc_core.a \ + ../../../src/fe-common/core/libfe_common_core.a \ ../../../src/core/libcore.a \ ../../../src/lib-config/libirssi_config.a \ @GLIB_LIBS@ \ -- cgit v1.2.3