summaryrefslogtreecommitdiff
path: root/regress/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'regress/unittests')
-rw-r--r--regress/unittests/sshbuf/test_sshbuf.c6
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_fixed.c6
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_fuzz.c4
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_getput_basic.c4
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_getput_crypto.c4
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c4
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_misc.c4
-rw-r--r--regress/unittests/sshbuf/tests.c2
-rw-r--r--regress/unittests/test_helper/fuzz.c2
-rw-r--r--regress/unittests/test_helper/test_helper.c6
10 files changed, 31 insertions, 11 deletions
diff --git a/regress/unittests/sshbuf/test_sshbuf.c b/regress/unittests/sshbuf/test_sshbuf.c
index 834dcd050..85eacd66f 100644
--- a/regress/unittests/sshbuf/test_sshbuf.c
+++ b/regress/unittests/sshbuf/test_sshbuf.c
@@ -5,6 +5,9 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#define SSHBUF_INTERNAL 1 /* access internals for testing */
9#include "includes.h"
10
8#include <sys/types.h> 11#include <sys/types.h>
9#include <sys/param.h> 12#include <sys/param.h>
10#include <stdio.h> 13#include <stdio.h>
@@ -12,10 +15,9 @@
12#include <stdlib.h> 15#include <stdlib.h>
13#include <string.h> 16#include <string.h>
14 17
15#include "test_helper.h" 18#include "../test_helper/test_helper.h"
16 19
17#include "ssherr.h" 20#include "ssherr.h"
18#define SSHBUF_INTERNAL 1 /* access internals for testing */
19#include "sshbuf.h" 21#include "sshbuf.h"
20 22
21void sshbuf_tests(void); 23void sshbuf_tests(void);
diff --git a/regress/unittests/sshbuf/test_sshbuf_fixed.c b/regress/unittests/sshbuf/test_sshbuf_fixed.c
index 62c815a2e..52dc84b6f 100644
--- a/regress/unittests/sshbuf/test_sshbuf_fixed.c
+++ b/regress/unittests/sshbuf/test_sshbuf_fixed.c
@@ -5,6 +5,9 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#define SSHBUF_INTERNAL 1 /* access internals for testing */
9#include "includes.h"
10
8#include <sys/types.h> 11#include <sys/types.h>
9#include <sys/param.h> 12#include <sys/param.h>
10#include <stdio.h> 13#include <stdio.h>
@@ -12,9 +15,8 @@
12#include <stdlib.h> 15#include <stdlib.h>
13#include <string.h> 16#include <string.h>
14 17
15#include "test_helper.h" 18#include "../test_helper/test_helper.h"
16 19
17#define SSHBUF_INTERNAL 1 /* access internals for testing */
18#include "sshbuf.h" 20#include "sshbuf.h"
19#include "ssherr.h" 21#include "ssherr.h"
20 22
diff --git a/regress/unittests/sshbuf/test_sshbuf_fuzz.c b/regress/unittests/sshbuf/test_sshbuf_fuzz.c
index a014b048c..d902ac460 100644
--- a/regress/unittests/sshbuf/test_sshbuf_fuzz.c
+++ b/regress/unittests/sshbuf/test_sshbuf_fuzz.c
@@ -5,6 +5,8 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#include "includes.h"
9
8#include <sys/types.h> 10#include <sys/types.h>
9#include <sys/param.h> 11#include <sys/param.h>
10#include <stdio.h> 12#include <stdio.h>
@@ -12,7 +14,7 @@
12#include <stdlib.h> 14#include <stdlib.h>
13#include <string.h> 15#include <string.h>
14 16
15#include "test_helper.h" 17#include "../test_helper/test_helper.h"
16 18
17#include "ssherr.h" 19#include "ssherr.h"
18#include "sshbuf.h" 20#include "sshbuf.h"
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_basic.c b/regress/unittests/sshbuf/test_sshbuf_getput_basic.c
index 2d469ec11..cf4d0a343 100644
--- a/regress/unittests/sshbuf/test_sshbuf_getput_basic.c
+++ b/regress/unittests/sshbuf/test_sshbuf_getput_basic.c
@@ -5,6 +5,8 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#include "includes.h"
9
8#include <sys/types.h> 10#include <sys/types.h>
9#include <sys/param.h> 11#include <sys/param.h>
10#include <stdio.h> 12#include <stdio.h>
@@ -12,7 +14,7 @@
12#include <stdlib.h> 14#include <stdlib.h>
13#include <string.h> 15#include <string.h>
14 16
15#include "test_helper.h" 17#include "../test_helper/test_helper.h"
16#include "ssherr.h" 18#include "ssherr.h"
17#include "sshbuf.h" 19#include "sshbuf.h"
18 20
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c b/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
index d7d4dc378..53290a64c 100644
--- a/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
+++ b/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
@@ -5,6 +5,8 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#include "includes.h"
9
8#include <sys/types.h> 10#include <sys/types.h>
9#include <sys/param.h> 11#include <sys/param.h>
10#include <stdio.h> 12#include <stdio.h>
@@ -16,7 +18,7 @@
16#include <openssl/ec.h> 18#include <openssl/ec.h>
17#include <openssl/objects.h> 19#include <openssl/objects.h>
18 20
19#include "test_helper.h" 21#include "../test_helper/test_helper.h"
20#include "ssherr.h" 22#include "ssherr.h"
21#include "sshbuf.h" 23#include "sshbuf.h"
22 24
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
index a382ee154..eed2d6025 100644
--- a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
+++ b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
@@ -5,6 +5,8 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#include "includes.h"
9
8#include <sys/types.h> 10#include <sys/types.h>
9#include <sys/param.h> 11#include <sys/param.h>
10#include <stdio.h> 12#include <stdio.h>
@@ -16,7 +18,7 @@
16#include <openssl/ec.h> 18#include <openssl/ec.h>
17#include <openssl/objects.h> 19#include <openssl/objects.h>
18 20
19#include "test_helper.h" 21#include "../test_helper/test_helper.h"
20#include "ssherr.h" 22#include "ssherr.h"
21#include "sshbuf.h" 23#include "sshbuf.h"
22 24
diff --git a/regress/unittests/sshbuf/test_sshbuf_misc.c b/regress/unittests/sshbuf/test_sshbuf_misc.c
index a5b1ab2c9..a47f9f0bf 100644
--- a/regress/unittests/sshbuf/test_sshbuf_misc.c
+++ b/regress/unittests/sshbuf/test_sshbuf_misc.c
@@ -5,6 +5,8 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#include "includes.h"
9
8#include <sys/types.h> 10#include <sys/types.h>
9#include <sys/param.h> 11#include <sys/param.h>
10#include <stdio.h> 12#include <stdio.h>
@@ -12,7 +14,7 @@
12#include <stdlib.h> 14#include <stdlib.h>
13#include <string.h> 15#include <string.h>
14 16
15#include "test_helper.h" 17#include "../test_helper/test_helper.h"
16 18
17#include "sshbuf.h" 19#include "sshbuf.h"
18 20
diff --git a/regress/unittests/sshbuf/tests.c b/regress/unittests/sshbuf/tests.c
index 8397e4011..1557e4342 100644
--- a/regress/unittests/sshbuf/tests.c
+++ b/regress/unittests/sshbuf/tests.c
@@ -5,7 +5,7 @@
5 * Placed in the public domain 5 * Placed in the public domain
6 */ 6 */
7 7
8#include "test_helper.h" 8#include "../test_helper/test_helper.h"
9 9
10void sshbuf_tests(void); 10void sshbuf_tests(void);
11void sshbuf_getput_basic_tests(void); 11void sshbuf_getput_basic_tests(void);
diff --git a/regress/unittests/test_helper/fuzz.c b/regress/unittests/test_helper/fuzz.c
index b64af24ed..63b2370d2 100644
--- a/regress/unittests/test_helper/fuzz.c
+++ b/regress/unittests/test_helper/fuzz.c
@@ -17,6 +17,8 @@
17 17
18/* Utility functions/framework for fuzz tests */ 18/* Utility functions/framework for fuzz tests */
19 19
20#include "includes.h"
21
20#include <sys/types.h> 22#include <sys/types.h>
21 23
22#include <assert.h> 24#include <assert.h>
diff --git a/regress/unittests/test_helper/test_helper.c b/regress/unittests/test_helper/test_helper.c
index 8f0bbdec9..5881538ee 100644
--- a/regress/unittests/test_helper/test_helper.c
+++ b/regress/unittests/test_helper/test_helper.c
@@ -17,6 +17,8 @@
17 17
18/* Utility functions/framework for regress tests */ 18/* Utility functions/framework for regress tests */
19 19
20#include "includes.h"
21
20#include <sys/types.h> 22#include <sys/types.h>
21#include <sys/param.h> 23#include <sys/param.h>
22 24
@@ -30,7 +32,9 @@
30 32
31#include <openssl/bn.h> 33#include <openssl/bn.h>
32 34
33#include <vis.h> 35#if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS)
36# include <vis.h>
37#endif
34 38
35#include "test_helper.h" 39#include "test_helper.h"
36 40