From 0571557ad1a943739806046a24fdaf1e62b32886 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 1 Feb 2023 18:15:51 +0100 Subject: Enabled make test and test.sh --- tests/test_common.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/test_common.h (limited to 'tests/test_common.h') diff --git a/tests/test_common.h b/tests/test_common.h new file mode 100644 index 0000000..ea35ecd --- /dev/null +++ b/tests/test_common.h @@ -0,0 +1,19 @@ +#ifndef TEST_COMMON_H +#define TEST_COMMON_H + +typedef void (*VoidMethod)(void); +typedef bool (*TestMethod)(void *); + +typedef struct { + char * name; + TestMethod t; + void ** cases; +} Test; + +typedef struct { + VoidMethod setup; + Test ** tests; + VoidMethod teardown; +} TestSuite; + +#endif -- cgit v1.3