tests: add msgbuf_parse tests
This commit is contained in:
parent
f3564f47f4
commit
05a16d98e1
5 changed files with 3419 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -56,6 +56,7 @@ ircd/version.c
|
||||||
ircd/version.c.last
|
ircd/version.c.last
|
||||||
ssld/ssld
|
ssld/ssld
|
||||||
wsockd/wsockd
|
wsockd/wsockd
|
||||||
|
tests/msgbuf_parse1
|
||||||
tests/runtests
|
tests/runtests
|
||||||
testsuite/ircd.pid.*
|
testsuite/ircd.pid.*
|
||||||
tools/charybdis-mkpasswd
|
tools/charybdis-mkpasswd
|
||||||
|
|
|
@ -66,7 +66,7 @@ msgbuf_unescape_value(char *value)
|
||||||
|
|
||||||
if (unescape) {
|
if (unescape) {
|
||||||
*out++ = unescape;
|
*out++ = unescape;
|
||||||
*in++;
|
in++;
|
||||||
} else {
|
} else {
|
||||||
*out++ = *in++;
|
*out++ = *in++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
check_PROGRAMS = runtests
|
check_PROGRAMS = runtests \
|
||||||
|
msgbuf_parse1
|
||||||
AM_CFLAGS=$(WARNFLAGS)
|
AM_CFLAGS=$(WARNFLAGS)
|
||||||
AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
|
AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
|
||||||
AM_LDFLAGS = -no-install
|
AM_LDFLAGS = -no-install
|
||||||
|
@ -13,5 +14,7 @@ check_LIBRARIES = tap/libtap.a
|
||||||
tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
|
tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
|
||||||
tap/float.c tap/float.h tap/macros.h
|
tap/float.c tap/float.h tap/macros.h
|
||||||
|
|
||||||
|
msgbuf_parse1_SOURCES = msgbuf_parse1.c
|
||||||
|
|
||||||
check-local: $(check_PROGRAMS)
|
check-local: $(check_PROGRAMS)
|
||||||
./runtests -l $(abs_top_srcdir)/tests/TESTS
|
./runtests -l $(abs_top_srcdir)/tests/TESTS
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#
|
msgbuf_parse1
|
||||||
|
|
3412
tests/msgbuf_parse1.c
Normal file
3412
tests/msgbuf_parse1.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue