#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include "builtin.h"
#include "hist.h"
#include "intlist.h"
#include "tests.h"
#include "debug.h"
#include "color.h"
#include <subcmd/parse-options.h>
#include "string2.h"
#include "symbol.h"
#include <linux/kernel.h>
#include <subcmd/exec-cmd.h>
Go to the source code of this file.
|
static bool | perf_test__matches (struct test *test, int curr, int argc, const char *argv[]) |
|
static int | run_test (struct test *test, int subtest) |
|
static int | test_and_print (struct test *t, bool force_skip, int subtest) |
|
static const char * | shell_test__description (char *description, size_t size, const char *path, const char *name) |
|
static const char * | shell_tests__dir (char *path, size_t size) |
|
static int | shell_tests__max_desc_width (void) |
|
static int | shell_test__run (struct test *test, int subdir __maybe_unused) |
|
static int | run_shell_tests (int argc, const char *argv[], int i, int width) |
|
static int | __cmd_test (int argc, const char *argv[], struct intlist *skiplist) |
|
static int | perf_test__list_shell (int argc, const char **argv, int i) |
|
static int | perf_test__list (int argc, const char **argv) |
|
int | cmd_test (int argc, const char **argv) |
|
◆ for_each_shell_test
#define for_each_shell_test |
( |
|
dir, |
|
|
|
base, |
|
|
|
ent |
|
) |
| |
Value:while ((ent = readdir(
dir)) != NULL) \
bool is_directory(const char *base_path, const struct dirent *dent)
Definition at line 423 of file builtin-test.c.
◆ for_each_test
#define for_each_test |
( |
|
j, |
|
|
|
t |
|
) |
| |
Value:for (j = 0; j < ARRAY_SIZE(
tests); j++) \
int(* func)(struct test *test, int subtest)
static struct test * tests[]
Definition at line 368 of file builtin-test.c.
◆ __cmd_test()
static int __cmd_test |
( |
int |
argc, |
|
|
const char * |
argv[], |
|
|
struct intlist * |
skiplist |
|
) |
| |
|
static |
◆ cmd_test()
int cmd_test |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
◆ perf_test__list()
static int perf_test__list |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
static |
◆ perf_test__list_shell()
static int perf_test__list_shell |
( |
int |
argc, |
|
|
const char ** |
argv, |
|
|
int |
i |
|
) |
| |
|
static |
◆ perf_test__matches()
static bool perf_test__matches |
( |
struct test * |
test, |
|
|
int |
curr, |
|
|
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
|
static |
◆ run_shell_tests()
static int run_shell_tests |
( |
int |
argc, |
|
|
const char * |
argv[], |
|
|
int |
i, |
|
|
int |
width |
|
) |
| |
|
static |
◆ run_test()
static int run_test |
( |
struct test * |
test, |
|
|
int |
subtest |
|
) |
| |
|
static |
◆ shell_test__description()
static const char* shell_test__description |
( |
char * |
description, |
|
|
size_t |
size, |
|
|
const char * |
path, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ shell_test__run()
static int shell_test__run |
( |
struct test * |
test, |
|
|
int subdir |
__maybe_unused |
|
) |
| |
|
static |
◆ shell_tests__dir()
static const char* shell_tests__dir |
( |
char * |
path, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ shell_tests__max_desc_width()
static int shell_tests__max_desc_width |
( |
void |
| ) |
|
|
static |
◆ test_and_print()
static int test_and_print |
( |
struct test * |
t, |
|
|
bool |
force_skip, |
|
|
int |
subtest |
|
) |
| |
|
static |
◆ arch_tests
struct test __weak arch_tests[] |
◆ dont_fork
◆ generic_tests
struct test generic_tests[] |
|
static |
◆ tests
Initial value:= {
}
static struct test generic_tests[]
struct test __weak arch_tests[]
Definition at line 287 of file builtin-test.c.