]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
added wrapper for miscellaneous tests
authorAlan T. DeKok <aland@freeradius.org>
Fri, 3 Apr 2020 13:54:31 +0000 (09:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Apr 2020 13:54:31 +0000 (09:54 -0400)
src/tests/misc/all.mk [new file with mode: 0644]

diff --git a/src/tests/misc/all.mk b/src/tests/misc/all.mk
new file mode 100644 (file)
index 0000000..f1ad234
--- /dev/null
@@ -0,0 +1,16 @@
+$(BUILD_DIR)/bin/test_cursor: src/lib/util/cursor.c
+       ${Q}$(CC) $^ -g3 -Wall -DTESTING_CURSOR -Isrc/ -Isrc/lib/ -include src/include/build.h -l talloc -o $@
+
+OUTPUT := $(BUILD_DIR)/tests/misc
+
+.PHONY: $(OUTPUT)
+$(OUTPUT):
+       @${Q}mkdir -p $@
+
+$(OUTPUT)/cursor.log: $(BUILD_DIR)/bin/test_cursor | $(OUTPUT)
+       ${Q}if ! $^ > $@ ; then \
+               echo FAILED "$^ > $@"; \
+       fi
+
+test.misc: $(OUTPUT)/cursor.log
+