summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 13:18:52 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 14:33:37 -0400
commitf65912600fc301cbdbb613f1df0dc29820f1da35 (patch)
tree43db69627433fbb8f5acd13c6cf0ef8a3c3b829d
parentc4b8ca3dc222b06c40ebcb416d653e17e88de858 (diff)
downloadzix-f65912600fc301cbdbb613f1df0dc29820f1da35.tar.gz
zix-f65912600fc301cbdbb613f1df0dc29820f1da35.tar.bz2
zix-f65912600fc301cbdbb613f1df0dc29820f1da35.zip
Use conventional test executable names
-rw-r--r--meson.build18
-rw-r--r--test/test_allocator.c (renamed from test/allocator_test.c)0
-rw-r--r--test/test_bitset.c (renamed from test/bitset_test.c)1
-rw-r--r--test/test_btree.c (renamed from test/btree_test.c)3
-rw-r--r--test/test_digest.c (renamed from test/digest_test.c)2
-rw-r--r--test/test_hash.c (renamed from test/hash_test.c)0
-rw-r--r--test/test_ring.c (renamed from test/ring_test.c)0
-rw-r--r--test/test_sem.c (renamed from test/sem_test.c)0
-rw-r--r--test/test_strerror.c (renamed from test/strerror_test.c)0
-rw-r--r--test/test_tree.c (renamed from test/tree_test.c)0
10 files changed, 14 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index 7d2ab27..45f8b88 100644
--- a/meson.build
+++ b/meson.build
@@ -172,18 +172,18 @@ install_headers(c_headers, subdir: versioned_name / 'zix')
#########
sequential_tests = [
- 'allocator_test',
- 'bitset_test',
- 'btree_test',
- 'digest_test',
- 'hash_test',
- 'strerror_test',
- 'tree_test',
+ 'test_allocator',
+ 'test_bitset',
+ 'test_btree',
+ 'test_digest',
+ 'test_hash',
+ 'test_strerror',
+ 'test_tree',
]
threaded_tests = [
- 'ring_test',
- 'sem_test',
+ 'test_ring',
+ 'test_sem',
]
if not get_option('tests').disabled() and not meson.is_subproject()
diff --git a/test/allocator_test.c b/test/test_allocator.c
index e146de6..e146de6 100644
--- a/test/allocator_test.c
+++ b/test/test_allocator.c
diff --git a/test/bitset_test.c b/test/test_bitset.c
index ef0528f..67f6567 100644
--- a/test/bitset_test.c
+++ b/test/test_bitset.c
@@ -6,6 +6,7 @@
#include "zix/bitset.h"
#include <assert.h>
+#include <stddef.h>
#define N_BITS 256U
#define N_ELEMS (ZIX_BITSET_ELEMS(N_BITS))
diff --git a/test/btree_test.c b/test/test_btree.c
index 878eef9..3820f56 100644
--- a/test/btree_test.c
+++ b/test/test_btree.c
@@ -8,13 +8,14 @@
#include "failing_allocator.h"
#include "test_data.h"
+#include "zix/allocator.h"
+#include "zix/attributes.h"
#include "zix/common.h"
#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdbool.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/digest_test.c b/test/test_digest.c
index c1a16a8..7e7e77a 100644
--- a/test/digest_test.c
+++ b/test/test_digest.c
@@ -3,10 +3,12 @@
#undef NDEBUG
+#include "zix/attributes.h"
#include "zix/digest.h"
#include <assert.h>
#include <stddef.h>
+#include <stdint.h>
// Just basic smoke tests to ensure the hash functions are reacting to data
diff --git a/test/hash_test.c b/test/test_hash.c
index 287dbaa..287dbaa 100644
--- a/test/hash_test.c
+++ b/test/test_hash.c
diff --git a/test/ring_test.c b/test/test_ring.c
index 79aa0f1..79aa0f1 100644
--- a/test/ring_test.c
+++ b/test/test_ring.c
diff --git a/test/sem_test.c b/test/test_sem.c
index 33859f1..33859f1 100644
--- a/test/sem_test.c
+++ b/test/test_sem.c
diff --git a/test/strerror_test.c b/test/test_strerror.c
index 2f4c090..2f4c090 100644
--- a/test/strerror_test.c
+++ b/test/test_strerror.c
diff --git a/test/tree_test.c b/test/test_tree.c
index 7c7fcf4..7c7fcf4 100644
--- a/test/tree_test.c
+++ b/test/test_tree.c