aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-08 22:46:10 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-03-08 22:46:10 -0900
commit07cad3f8c04edb32d6379c8b453c4fd92441966e (patch)
tree17c41a769ac4f5a8175e917920ccfb83b48ce3ef /tests
parentf6cedf2aae6cb0cdf219859f69cafd0cc8f6f6e3 (diff)
downloadtinyrad-07cad3f8c04edb32d6379c8b453c4fd92441966e.tar.gz
tinyrad-07cad3f8c04edb32d6379c8b453c4fd92441966e.tar.bz2
tinyrad-07cad3f8c04edb32d6379c8b453c4fd92441966e.tar.xz
tinyrad-07cad3f8c04edb32d6379c8b453c4fd92441966e.zip
tests: renaming common.h to common-url.h
Diffstat (limited to 'tests')
-rw-r--r--tests/common-dict.c4
-rw-r--r--tests/common-dict.h2
-rw-r--r--tests/common-url.c (renamed from tests/common.c)4
-rw-r--r--tests/common-url.h (renamed from tests/common.h)12
-rw-r--r--tests/test-array-queue.c2
-rw-r--r--tests/test-array-sorted.c2
-rw-r--r--tests/test-array-stack.c2
-rw-r--r--tests/test-assertions.c2
-rw-r--r--tests/test-assumptions.c2
-rw-r--r--tests/test-dict-attrs.c4
-rw-r--r--tests/test-dict-values.c4
-rw-r--r--tests/test-dict-vendors.c4
-rw-r--r--tests/test-oid-str.c2
-rw-r--r--tests/test-options.c2
-rw-r--r--tests/test-pckt-byte-order.c2
-rw-r--r--tests/test-url-desc2str.c4
-rw-r--r--tests/test-url-parse.c4
-rw-r--r--tests/test-url-resolve.c4
18 files changed, 30 insertions, 32 deletions
diff --git a/tests/common-dict.c b/tests/common-dict.c
index 9a6e499..f3f149c 100644
--- a/tests/common-dict.c
+++ b/tests/common-dict.c
@@ -43,8 +43,6 @@
43#include <stdio.h> 43#include <stdio.h>
44#include <assert.h> 44#include <assert.h>
45 45
46#include "common.h"
47
48 46
49/////////////////// 47///////////////////
50// // 48// //
@@ -324,7 +322,7 @@ our_dict_initialize(
324 }; 322 };
325 323
326 // load builtin/default dictionary objects 324 // load builtin/default dictionary objects
327 if ((opts & TRAD_TEST_DFLT_DICT)) 325 if ((opts & TEST_OPT_DFLT_DICT))
328 { 326 {
329 trutils_verbose(opts, "loading default dictionary ..."); 327 trutils_verbose(opts, "loading default dictionary ...");
330 if ((rc = tinyrad_dict_defaults(*dictp, &errs, 0)) != TRAD_SUCCESS) 328 if ((rc = tinyrad_dict_defaults(*dictp, &errs, 0)) != TRAD_SUCCESS)
diff --git a/tests/common-dict.h b/tests/common-dict.h
index 84d258b..4b5ef17 100644
--- a/tests/common-dict.h
+++ b/tests/common-dict.h
@@ -49,6 +49,8 @@
49/////////////////// 49///////////////////
50#pragma mark - Definitions 50#pragma mark - Definitions
51 51
52#define TEST_OPT_DFLT_DICT 0x0040UL
53
52 54
53///////////////// 55/////////////////
54// // 56// //
diff --git a/tests/common.c b/tests/common-url.c
index 2c0f288..310775a 100644
--- a/tests/common.c
+++ b/tests/common-url.c
@@ -28,8 +28,8 @@
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31#define _TESTS_COMMON_C 1 31#define _TESTS_COMMON_URL_C 1
32#include "common.h" 32#include "common-url.h"
33 33
34 34
35/////////////// 35///////////////
diff --git a/tests/common.h b/tests/common-url.h
index 05f9784..ec63c68 100644
--- a/tests/common.h
+++ b/tests/common-url.h
@@ -28,8 +28,8 @@
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31#ifndef _TESTS_COMMON_H 31#ifndef _TESTS_COMMON_URL_H
32#define _TESTS_COMMON_H 1 32#define _TESTS_COMMON_URL_H 1
33 33
34 34
35/////////////// 35///////////////
@@ -39,14 +39,6 @@
39/////////////// 39///////////////
40#pragma mark - Headers 40#pragma mark - Headers
41 41
42#include <tinyrad_compat.h>
43
44#ifdef HAVE_CONFIG_H
45#include <config.h>
46#endif
47
48#include <tinyrad.h>
49#include <tinyrad_internal.h>
50#include <tinyrad_utils.h> 42#include <tinyrad_utils.h>
51 43
52 44
diff --git a/tests/test-array-queue.c b/tests/test-array-queue.c
index e014088..3f06021 100644
--- a/tests/test-array-queue.c
+++ b/tests/test-array-queue.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/tests/test-array-sorted.c b/tests/test-array-sorted.c
index ef86c12..445f240 100644
--- a/tests/test-array-sorted.c
+++ b/tests/test-array-sorted.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/tests/test-array-stack.c b/tests/test-array-stack.c
index 7912878..9d94da6 100644
--- a/tests/test-array-stack.c
+++ b/tests/test-array-stack.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/tests/test-assertions.c b/tests/test-assertions.c
index f4aa426..fd88e75 100644
--- a/tests/test-assertions.c
+++ b/tests/test-assertions.c
@@ -40,7 +40,7 @@
40 40
41#undef NDEBUG 41#undef NDEBUG
42 42
43#include "common.h" 43#include <tinyrad_utils.h>
44 44
45#include <stdio.h> 45#include <stdio.h>
46#include <getopt.h> 46#include <getopt.h>
diff --git a/tests/test-assumptions.c b/tests/test-assumptions.c
index dfd6364..7d16837 100644
--- a/tests/test-assumptions.c
+++ b/tests/test-assumptions.c
@@ -40,7 +40,7 @@
40 40
41#undef NDEBUG 41#undef NDEBUG
42 42
43#include "common.h" 43#include <tinyrad_utils.h>
44 44
45#include <stdio.h> 45#include <stdio.h>
46#include <stdarg.h> 46#include <stdarg.h>
diff --git a/tests/test-dict-attrs.c b/tests/test-dict-attrs.c
index 448b95a..6bf5970 100644
--- a/tests/test-dict-attrs.c
+++ b/tests/test-dict-attrs.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
@@ -120,7 +120,7 @@ main(
120 120
121 trutils_initialize(PROGRAM_NAME); 121 trutils_initialize(PROGRAM_NAME);
122 122
123 opts = TRAD_TEST_DFLT_DICT; 123 opts = TEST_OPT_DFLT_DICT;
124 124
125 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1) 125 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1)
126 { 126 {
diff --git a/tests/test-dict-values.c b/tests/test-dict-values.c
index 8f54d52..ba32364 100644
--- a/tests/test-dict-values.c
+++ b/tests/test-dict-values.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
@@ -122,7 +122,7 @@ main(
122 122
123 trutils_initialize(PROGRAM_NAME); 123 trutils_initialize(PROGRAM_NAME);
124 124
125 opts = TRAD_TEST_DFLT_DICT; 125 opts = TEST_OPT_DFLT_DICT;
126 126
127 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1) 127 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1)
128 { 128 {
diff --git a/tests/test-dict-vendors.c b/tests/test-dict-vendors.c
index 21a2a1a..258a729 100644
--- a/tests/test-dict-vendors.c
+++ b/tests/test-dict-vendors.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
@@ -120,7 +120,7 @@ main(
120 120
121 trutils_initialize(PROGRAM_NAME); 121 trutils_initialize(PROGRAM_NAME);
122 122
123 opts = TRAD_TEST_DFLT_DICT; 123 opts = TEST_OPT_DFLT_DICT;
124 124
125 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1) 125 while((c = getopt_long(argc, argv, short_opt, long_opt, &opt_index)) != -1)
126 { 126 {
diff --git a/tests/test-oid-str.c b/tests/test-oid-str.c
index 9e79ebb..9561180 100644
--- a/tests/test-oid-str.c
+++ b/tests/test-oid-str.c
@@ -37,7 +37,7 @@
37/////////////// 37///////////////
38#pragma mark - Headers 38#pragma mark - Headers
39 39
40#include "common.h" 40#include <tinyrad_utils.h>
41 41
42#include <stdio.h> 42#include <stdio.h>
43#include <stdint.h> 43#include <stdint.h>
diff --git a/tests/test-options.c b/tests/test-options.c
index 8ad7cfc..fd9e3f2 100644
--- a/tests/test-options.c
+++ b/tests/test-options.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/tests/test-pckt-byte-order.c b/tests/test-pckt-byte-order.c
index 85b3ad5..66ea158 100644
--- a/tests/test-pckt-byte-order.c
+++ b/tests/test-pckt-byte-order.c
@@ -37,7 +37,7 @@
37/////////////// 37///////////////
38#pragma mark - Headers 38#pragma mark - Headers
39 39
40#include "common.h" 40#include <tinyrad_utils.h>
41 41
42#include <stdio.h> 42#include <stdio.h>
43#include <stdint.h> 43#include <stdint.h>
diff --git a/tests/test-url-desc2str.c b/tests/test-url-desc2str.c
index a566e95..446b23d 100644
--- a/tests/test-url-desc2str.c
+++ b/tests/test-url-desc2str.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
@@ -50,6 +50,8 @@
50 50
51#include <tinyrad.h> 51#include <tinyrad.h>
52 52
53#include "common-url.h"
54
53 55
54/////////////////// 56///////////////////
55// // 57// //
diff --git a/tests/test-url-parse.c b/tests/test-url-parse.c
index 4d6a1dd..cc7b267 100644
--- a/tests/test-url-parse.c
+++ b/tests/test-url-parse.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
@@ -50,6 +50,8 @@
50 50
51#include <tinyrad.h> 51#include <tinyrad.h>
52 52
53#include "common-url.h"
54
53 55
54/////////////////// 56///////////////////
55// // 57// //
diff --git a/tests/test-url-resolve.c b/tests/test-url-resolve.c
index 3027eed..8cf2539 100644
--- a/tests/test-url-resolve.c
+++ b/tests/test-url-resolve.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
@@ -50,6 +50,8 @@
50 50
51#include <tinyrad.h> 51#include <tinyrad.h>
52 52
53#include "common-url.h"
54
53 55
54/////////////////// 56///////////////////
55// // 57// //