aboutsummaryrefslogtreecommitdiff
path: root/include/kpl_test.h
blob: 6d19effd970cfca926041bb0b4fc870d004742fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#pragma once

// KPL testing framework

#include "kpl.h"

typedef struct _kpl_test kpl_test;

typedef void kpl_test_function(__attribute__((unused)) kpl_test *_test);

typedef struct _kpl_test {
    int32_t error_line_number;
    char *file_name, *test_name, *error_message;
    kpl_test_function *test_function;
    struct _kpl_test *next_test;
} kpl_test;

void kpl_test_add(kpl_test *_test);