aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c
new file mode 100644
index 0000000..9ec1a84
--- /dev/null
+++ b/tests/tests.c
@@ -0,0 +1,26 @@
+#include "dnslite.h"
+#include "unity.h"
+
+#include "test_dns.h"
+
+void setUp (void)
+{
+ struct dnsl_error error;
+
+ if(dnsl_socket_init(&error) != 0)
+ {
+ printf("Could not initialize sockets: [%d] %s\n", error.code, error.msg);
+ }
+}
+
+void tearDown (void)
+{
+ dnsl_socket_fini();
+}
+
+int main (void)
+{
+ UNITY_BEGIN();
+ RUN_TEST(test_dnsl_encode_hostname);
+ return UNITY_END();
+}