#include <stdbool.h>
#include <stdlib.h>
#include "tests.h"
#include "dso.h"
#include "debug.h"
Go to the source code of this file.
|
#define | T(path, an, ae, k, c, n, e) TEST_ASSERT_VAL("failed", !test(path, an, ae, k, c, n, e)) |
|
#define | M(path, c, e) TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e)) |
|
#define M |
( |
|
path, |
|
|
|
c, |
|
|
|
e |
|
) |
| TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e)) |
#define T |
( |
|
path, |
|
|
|
an, |
|
|
|
ae, |
|
|
|
k, |
|
|
|
c, |
|
|
|
n, |
|
|
|
e |
|
) |
| TEST_ASSERT_VAL("failed", !test(path, an, ae, k, c, n, e)) |
◆ test()
static int test |
( |
const char * |
path, |
|
|
bool |
alloc_name, |
|
|
bool |
alloc_ext, |
|
|
bool |
kmod, |
|
|
bool |
comp, |
|
|
const char * |
name, |
|
|
const char * |
ext |
|
) |
| |
|
static |
◆ test__kmod_path__parse()
int test__kmod_path__parse |
( |
struct test *t |
__maybe_unused, |
|
|
int subtest |
__maybe_unused |
|
) |
| |
◆ test_is_kernel_module()
static int test_is_kernel_module |
( |
const char * |
path, |
|
|
int |
cpumode, |
|
|
bool |
expect |
|
) |
| |
|
static |