diff --git a/tests/api.c b/tests/api.c
new file mode 100644
index 00000000..2f52ffde
--- /dev/null
+++ b/tests/api.c
@@ -0,0 +1,28 @@
+/* api.c
+ *
+ * Copyright (C) 2014-2017 wolfSSL Inc.
+ *
+ * This file is part of wolfSSH.
+ *
+ * wolfSSH is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * wolfSSH is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with wolfSSH. If not, see .
+ */
+
+
+#include
+
+
+int ApiTest(void)
+{
+ return 0;
+}
diff --git a/tests/include.am b/tests/include.am
index 6e8495e2..5e549e7a 100644
--- a/tests/include.am
+++ b/tests/include.am
@@ -5,7 +5,7 @@
check_PROGRAMS += tests/unit.test
noinst_PROGRAMS += tests/unit.test
-tests_unit_test_SOURCES = tests/unit.c
+tests_unit_test_SOURCES = tests/unit.c tests/api.c
tests_unit_test_CFLAGS = -DNO_MAIN_DRIVER $(AM_CFLAGS)
tests_unit_test_LDADD = src/libwolfssh.la $(LIB_STATIC_ADD)
diff --git a/tests/unit.c b/tests/unit.c
index d2a93999..730fa5e9 100644
--- a/tests/unit.c
+++ b/tests/unit.c
@@ -23,6 +23,7 @@
#include
#include
#include
+#include
/* Utility functions */
@@ -393,6 +394,10 @@ int main(void)
testResult = testResult || unitResult;
#endif
+ unitResult = ApiTest();
+ printf("API: %s\n", (unitResult == 0 ? "SUCCESS" : "FAILED"));
+ testResult = testResult || unitResult;
+
return (testResult ? 1 : 0);
}
diff --git a/tests/unit.h b/tests/unit.h
new file mode 100644
index 00000000..1676076e
--- /dev/null
+++ b/tests/unit.h
@@ -0,0 +1,37 @@
+/* unit.h
+ *
+ * Copyright (C) 2014-2016 wolfSSL Inc.
+ *
+ * This file is part of wolfSSH.
+ *
+ * wolfSSH is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * wolfSSH is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with wolfSSH. If not, see .
+ */
+
+
+/*
+ * The unit module contains the main driver for the wolfSSH unit tests.
+ */
+
+
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int ApiTest(void);
+
+#ifdef __cplusplus
+}
+#endif