aboutsummaryrefslogtreecommitdiff
path: root/test.c
blob: 69f12de32bb45275f2ebe9a5186b86d0156701ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

#include "service_provider.h"
#include "trusted_module.h"

void check(const char *name, int condition)
{
    printf("%s: %s", name, condition ? "\033[32;1mPASS\033[0m\n" : "\033[31;1mFAIL\033[0m\n");
    if(!condition)
    {
        printf("%s\n", tm_geterror());
        tm_seterror(NULL);
    }
}

int main()
{
    crypto_test();
    tm_test();
    sp_test();
}