From 63e0baf37c8024174aa4bacb12dccc7040de74d8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 28 Dec 2017 20:52:15 -0800 Subject: fixes #172 HTTP and websocket need better conditional inclusion --- tests/CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 921b5925..7f37c589 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -122,7 +122,6 @@ else () endif () add_nng_test(aio 5) -add_nng_test(base64 5) add_nng_test(bus 5) add_nng_test(files 5) add_nng_test(idhash 5) @@ -136,7 +135,6 @@ add_nng_test(pollfd 5) add_nng_test(pubsub 5) add_nng_test(reconnect 5) add_nng_test(resolv 10) -add_nng_test(sha1 5) add_nng_test(sock 5) add_nng_test(survey 5) add_nng_test(synch 5) @@ -152,10 +150,19 @@ add_nng_test(pair1 5) add_nng_test(udp 5) add_nng_test(zt 60) add_nng_test(multistress 60) -add_nng_test(httpclient 30) -add_nng_test(httpserver 30) add_nng_test(ws 30) +if (NNG_SUPP_BASE64) + add_nng_test(base64 5) +endif() +if (NNG_SUPP_HTTP) + add_nng_test(httpclient 30) + add_nng_test(httpserver 30) +endif() +if (NNG_SUPP_SHA1) + add_nng_test(sha1 5) +endif() + # compatbility tests # We only support these if ALL the legacy protocols are supported. This # is because we don't want to make modifications to partially enable some -- cgit v1.2.3-70-g09d2