aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.c
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-10-09 02:24:13 -0400
committerSamuel Johnson <[email protected]>2025-10-09 02:24:13 -0400
commit8518b3d1ac814837dbeed751112c1c9a66f86565 (patch)
treebe574974a534a5333a2e4aec3d9675d4eae42ced /tests/tests.c
Scaffold out basic project layoutHEADdev
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();
+}