tests: add msgbuf_parse tests

This commit is contained in:
Simon Arlott 2017-07-26 21:06:49 +01:00
parent f3564f47f4
commit 05a16d98e1
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24
5 changed files with 3419 additions and 3 deletions

1
.gitignore vendored
View file

@ -56,6 +56,7 @@ ircd/version.c
ircd/version.c.last
ssld/ssld
wsockd/wsockd
tests/msgbuf_parse1
tests/runtests
testsuite/ircd.pid.*
tools/charybdis-mkpasswd

View file

@ -66,7 +66,7 @@ msgbuf_unescape_value(char *value)
if (unescape) {
*out++ = unescape;
*in++;
in++;
} else {
*out++ = *in++;
}

View file

@ -1,4 +1,5 @@
check_PROGRAMS = runtests
check_PROGRAMS = runtests \
msgbuf_parse1
AM_CFLAGS=$(WARNFLAGS)
AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
AM_LDFLAGS = -no-install
@ -13,5 +14,7 @@ check_LIBRARIES = tap/libtap.a
tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
tap/float.c tap/float.h tap/macros.h
msgbuf_parse1_SOURCES = msgbuf_parse1.c
check-local: $(check_PROGRAMS)
./runtests -l $(abs_top_srcdir)/tests/TESTS

View file

@ -1 +1 @@
#
msgbuf_parse1

3412
tests/msgbuf_parse1.c Normal file

File diff suppressed because it is too large Load diff