From af17ead850f90cf6e4476aa74975e68d7293fb27 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Sun, 16 Sep 2018 15:27:31 +0300 Subject: Add unit test infrastructure --- unit/ck-test.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 unit/ck-test.c (limited to 'unit') diff --git a/unit/ck-test.c b/unit/ck-test.c new file mode 100644 index 0000000..01156f1 --- /dev/null +++ b/unit/ck-test.c @@ -0,0 +1,24 @@ +#include "cklist.h" +#include "stdio.h" + +#define CK_UNIT_TESTS \ + X(ck_list_init, "Initialize ck list") \ + X(ck_list_add, "Add elements to ck list") + +void ck_list_init() { + printf("Test1\n"); +} + +void ck_list_add() { + printf("Test2\n"); +} + +int main() { +#define X(TEST, DESC) \ + printf("--[%s]--\n", DESC); \ + TEST(); \ + printf("--[Passed]--\n\n"); + CK_UNIT_TESTS +#undef X +} + -- cgit v1.2.3