summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/bsu.c
blob: af2762b5ab89592d413d430ff91c0d4a5379ba6a (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Cesar project {{{
 *
 * Copyright (C) 2010 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    bsu/test/utest/src/bsu.c
 * \brief   bsu unit tests.
 * \ingroup bsu
 */
#include "common/std.h"
#include "lib/test.h"
#include "bsu/test/utest/tests.h"

void
test_suite_bsu_interface (test_t t);

void
test_suite_bsu (test_t t);

void
test_suite_bsu_schedule (test_t t);

int
main (int argc, char **argv)
{
    test_t test;
    test_init (test, argc, argv);
    test_suite_bsu (test);
    test_suite_bsu_interface (test);
    test_suite_bsu_schedule (test);
    test_begin (test, "Memory")
    {
        test_fail_if (blk_check_memory() == false, "Memory not freed");
    }
    test_end;
    test_result (test);
    return test_nb_failed (test) == 0 ? 0 : 1;
}