aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-02-01 18:15:51 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-02-01 18:15:51 +0100
commit0571557ad1a943739806046a24fdaf1e62b32886 (patch)
tree22668b5f66de6543e61b4f081c9cee4cb0bc2a95 /tests/test_common.h
parent49eab61d8be0d0a83f6a6c00c0a8fee73cf70992 (diff)
downloadnissy-0571557ad1a943739806046a24fdaf1e62b32886.tar.gz
nissy-0571557ad1a943739806046a24fdaf1e62b32886.zip
Enabled make test and test.sh
Diffstat (limited to '')
-rw-r--r--tests/test_common.h19
1 files changed, 19 insertions, 0 deletions
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 @@
1#ifndef TEST_COMMON_H
2#define TEST_COMMON_H
3
4typedef void (*VoidMethod)(void);
5typedef bool (*TestMethod)(void *);
6
7typedef struct {
8 char * name;
9 TestMethod t;
10 void ** cases;
11} Test;
12
13typedef struct {
14 VoidMethod setup;
15 Test ** tests;
16 VoidMethod teardown;
17} TestSuite;
18
19#endif

Generated with cgit - Back to sebastiano.tronto.net