Skip to content

Commit ce7892a

Browse files
committed
Add SM enable, ack and wrap unit tests
1 parent 189e426 commit ce7892a

File tree

4 files changed

+1172
-1
lines changed

4 files changed

+1172
-1
lines changed

tests/Makefile.am

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ TEST_PROGS = \
8888
wocky-session-test \
8989
wocky-stanza-test \
9090
wocky-tls-test \
91+
wocky-sm-test \
9192
wocky-utils-test \
9293
wocky-xmpp-connection-test \
9394
wocky-xmpp-node-test \
@@ -229,6 +230,19 @@ wocky_tls_test_SOURCES = \
229230
wocky-test-stream.c wocky-test-stream.h
230231
wocky_tls_test_CFLAGS = $(AM_CFLAGS) $(TLSDEFS)
231232

233+
EXTRA_wocky_sm_test_DEPENDENCIES = $(CA_DIR) certs
234+
wocky_sm_test_SOURCES = \
235+
wocky-sm-test.c \
236+
wocky-test-sasl-auth-server.c \
237+
wocky-test-sasl-auth-server.h \
238+
wocky-test-connector-server.c \
239+
wocky-test-connector-server.h \
240+
wocky-test-helper.c wocky-test-helper.h \
241+
wocky-test-stream.c wocky-test-stream.h \
242+
test-resolver.c test-resolver.h
243+
wocky_sm_test_LDADD = $(LDADD) @LIBSASL2_LIBS@
244+
wocky_sm_test_CFLAGS = $(AM_CFLAGS) @LIBSASL2_CFLAGS@ $(TLSDEFS)
245+
232246
wocky_utils_test_SOURCES = wocky-utils-test.c
233247

234248
wocky_xmpp_connection_test_SOURCES = \
@@ -297,7 +311,7 @@ test-%: wocky-%-test
297311
.PHONY: test test-report
298312

299313
include $(top_srcdir)/tools/check-coding-style.mk
300-
check-local: test check-coding-style
314+
check-local: check-coding-style test
301315

302316
############################################################################
303317

0 commit comments

Comments
 (0)