aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.c
blob: d871f1d45c34461fda58b3415be940b1fc285357 (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_init(&error) != 0)
    {
        printf("Could not initialize sockets: [%d] %s\n", error.code, error.msg);
    }
}

void tearDown (void)
{
    dnsl_fini();
}

int main (void)
{
    UNITY_BEGIN();
    RUN_TEST(test_dnsl_encode_hostname);
    return UNITY_END();
}