aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.c
blob: 9ec1a84347bbaecde59a0aecc9a9742aa2d962e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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();
}