summaryrefslogtreecommitdiff
path: root/regress/unittests/sshbuf
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-05-15 18:01:01 +1000
committerDamien Miller <djm@mindrot.org>2014-05-15 18:01:01 +1000
commite7429f2be8643e1100380a8a7389d85cc286c8fe (patch)
tree1d4b68573fb31a573907aef5cb9dcab57b2db333 /regress/unittests/sshbuf
parentdef1de086707b0e6b046fe7e115c60aca0227a99 (diff)
- (djm) [regress/Makefile Makefile.in]
[regress/unittests/sshbuf/test_sshbuf.c [regress/unittests/sshbuf/test_sshbuf_fixed.c] [regress/unittests/sshbuf/test_sshbuf_fuzz.c] [regress/unittests/sshbuf/test_sshbuf_getput_basic.c] [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c] [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] [regress/unittests/sshbuf/test_sshbuf_misc.c] [regress/unittests/sshbuf/tests.c] [regress/unittests/test_helper/fuzz.c] [regress/unittests/test_helper/test_helper.c] Hook new unit tests into the build and "make tests"
Diffstat (limited to 'regress/unittests/sshbuf')
-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
8 files changed, 24 insertions, 10 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);