| 1 |
R=../../.. |
| 2 |
include ${R}/config.mk |
| 3 |
|
| 4 |
.PHONY: all clean reallyclean |
| 5 |
|
| 6 |
LOCAL_CPPFLAGS+=-I${R}/test |
| 7 |
LOCAL_CFLAGS+=-Werror -ggdb |
| 8 |
LOCAL_LIBADD+=${LIBMOSQ} |
| 9 |
|
| 10 |
SRC = \ |
| 11 |
01-con-discon-success.c \ |
| 12 |
01-con-discon-success-v5.c \ |
| 13 |
01-con-discon-will.c \ |
| 14 |
01-con-discon-will-v5.c \ |
| 15 |
01-con-discon-will-clear.c \ |
| 16 |
01-extended-auth-continue.c \ |
| 17 |
01-extended-auth-failure.c \ |
| 18 |
01-keepalive-pingreq.c \ |
| 19 |
01-no-clean-session.c \ |
| 20 |
01-pre-connect-callback.c \ |
| 21 |
01-server-keepalive-pingreq.c \ |
| 22 |
01-unpwd-set.c \ |
| 23 |
01-will-set.c \ |
| 24 |
01-will-unpwd-set.c \ |
| 25 |
02-subscribe-helper-callback-qos2.c \ |
| 26 |
02-subscribe-helper-simple-qos2.c \ |
| 27 |
02-subscribe-qos0.c \ |
| 28 |
02-subscribe-qos1-async1.c \ |
| 29 |
02-subscribe-qos1-async2.c \ |
| 30 |
02-subscribe-qos1.c \ |
| 31 |
02-subscribe-qos2.c \ |
| 32 |
02-unsubscribe-multiple-v5.c \ |
| 33 |
02-unsubscribe-v5.c \ |
| 34 |
02-unsubscribe2-v5.c \ |
| 35 |
02-unsubscribe.c \ |
| 36 |
03-publish-b2c-qos1-unexpected-puback.c \ |
| 37 |
03-publish-b2c-qos1.c \ |
| 38 |
03-publish-b2c-qos2-len.c \ |
| 39 |
03-publish-b2c-qos2-unexpected-pubrel.c \ |
| 40 |
03-publish-b2c-qos2-unexpected-pubcomp.c \ |
| 41 |
03-publish-b2c-qos2.c \ |
| 42 |
03-publish-c2b-qos1-disconnect.c \ |
| 43 |
03-publish-c2b-qos1-len.c \ |
| 44 |
03-publish-c2b-qos1-receive-maximum.c \ |
| 45 |
03-publish-c2b-qos2-disconnect.c \ |
| 46 |
03-publish-c2b-qos2-len.c \ |
| 47 |
03-publish-c2b-qos2-maximum-qos-0.c \ |
| 48 |
03-publish-c2b-qos2-maximum-qos-1.c \ |
| 49 |
03-publish-c2b-qos2-pubrec-error.c \ |
| 50 |
03-publish-c2b-qos2-receive-maximum.c \ |
| 51 |
03-publish-c2b-qos2.c \ |
| 52 |
03-publish-loop.c \ |
| 53 |
03-publish-loop-forever.c \ |
| 54 |
03-publish-loop-manual.c \ |
| 55 |
03-publish-loop-start.c \ |
| 56 |
03-publish-qos0-no-payload.c \ |
| 57 |
03-publish-qos0.c \ |
| 58 |
03-request-response-1.c \ |
| 59 |
03-request-response-2.c \ |
| 60 |
03-request-response-correlation-1.c \ |
| 61 |
04-retain-qos0.c \ |
| 62 |
08-ssl-bad-cacert.c \ |
| 63 |
08-ssl-connect-cert-auth-enc.c \ |
| 64 |
08-ssl-connect-cert-auth.c \ |
| 65 |
08-ssl-connect-no-auth.c \ |
| 66 |
08-ssl-connect-san.c \ |
| 67 |
08-ssl-fake-cacert.c \ |
| 68 |
09-util-topic-tokenise.c \ |
| 69 |
11-prop-oversize-packet.c \ |
| 70 |
11-prop-recv.c \ |
| 71 |
11-prop-send-payload-format.c \ |
| 72 |
11-prop-send-content-type.c \ |
| 73 |
fuzzish.c |
| 74 |
|
| 75 |
ifeq ($(WITH_TLS),yes) |
| 76 |
SRC += \ |
| 77 |
08-ssl-connect-cert-auth-custom-ssl-ctx.c \ |
| 78 |
08-ssl-connect-cert-auth-custom-ssl-ctx-default.c |
| 79 |
LOCAL_LIBADD+=-lssl -lcrypto |
| 80 |
endif |
| 81 |
|
| 82 |
TESTS = ${SRC:.c=.test} |
| 83 |
|
| 84 |
all : ${TESTS} |
| 85 |
|
| 86 |
${TESTS} : %.test: %.c ${R}/test/path_helper.h |
| 87 |
$(CC) $< -o $@ -D TEST_SOURCE_DIR='"$(realpath .)"' $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) $(LOCAL_LIBADD) $(LOCAL_LDFLAGS) |
| 88 |
|
| 89 |
reallyclean : clean |
| 90 |
-rm -f *.orig |
| 91 |
|
| 92 |
clean : |
| 93 |
rm -f *.test |