mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
add new test skeleton
This commit is contained in:
parent
e405330e04
commit
5bddfe7b73
@ -665,6 +665,7 @@ tests/fe-common/Makefile
|
||||
tests/fe-common/core/Makefile
|
||||
tests/irc/Makefile
|
||||
tests/irc/core/Makefile
|
||||
tests/irc/flood/Makefile
|
||||
docs/Makefile
|
||||
docs/help/Makefile
|
||||
docs/help/in/Makefile
|
||||
|
@ -1 +1,3 @@
|
||||
SUBDIRS = core
|
||||
SUBDIRS = \
|
||||
core \
|
||||
flood
|
||||
|
32
tests/irc/flood/Makefile.am
Normal file
32
tests/irc/flood/Makefile.am
Normal file
@ -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
|
29
tests/irc/flood/test-796.c
Normal file
29
tests/irc/flood/test-796.c
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
test-796.c : irssi
|
||||
|
||||
Copyright (C) 2017 The Irssi project.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
g_test_init(&argc, &argv, NULL);
|
||||
|
||||
g_test_set_nonfatal_assertions();
|
||||
return g_test_run();
|
||||
}
|
Loading…
Reference in New Issue
Block a user