ReactOS 0.4.16-dev-38-g96c65e9
|
#include <kmt_test.h>
#include "kmtest.h"
#include <kmt_public.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | KMT_DEFINE_TEST_FUNCTIONS |
#define | SERVICE_NAME L"Kmtest" |
#define | SERVICE_PATH L"kmtest_drv.sys" |
#define | SERVICE_DESCRIPTION L"ReactOS Kernel-Mode Test Suite Driver" |
#define | RESULTBUFFER_SIZE (1024 * 1024) |
Enumerations | |
enum | KMT_OPERATION { KMT_DO_NOTHING , KMT_LIST_TESTS , KMT_LIST_ALL_TESTS , KMT_RUN_TEST } |
Functions | |||||
int __cdecl | main (int ArgCount, char **Arguments) | ||||
OutputError | |||||
Output an error message to the console.
| |||||
static void | OutputError (IN DWORD Error) | ||||
ListTests | |||||
Output the list of tests to the console. The list will comprise tests as listed by the driver in addition to user-mode tests in TestList.
| |||||
static DWORD | ListTests (IN BOOLEAN IncludeHidden) | ||||
FindTest | |||||
Find a test in TestList by name.
| |||||
static PKMT_TESTFUNC | FindTest (IN PCSTR TestName) | ||||
OutputResult | |||||
Output the test results in ResultBuffer to the console.
| |||||
static DWORD | OutputResult (IN PCSTR TestName) | ||||
RunTest | |||||
Run the named test and output its results.
| |||||
static DWORD | RunTest (IN PCSTR TestName) | ||||
CompareTestNames | |||||
strcmp that skips a leading '-' on either string if present
| |||||
static INT | CompareTestNames (IN PCSTR Str1, IN PCSTR Str2) | ||||
Variables | |
HANDLE | KmtestHandle |
SC_HANDLE | KmtestServiceHandle |
PCSTR | ErrorFileAndLine = "No error" |
#define SERVICE_DESCRIPTION L"ReactOS Kernel-Mode Test Suite Driver" |
Enumerator | |
---|---|
KMT_DO_NOTHING | |
KMT_LIST_TESTS | |
KMT_LIST_ALL_TESTS | |
KMT_RUN_TEST |
Definition at line 81 of file kmtest.c.
Referenced by ListTests().
|
static |
Definition at line 185 of file kmtest.c.
Definition at line 111 of file kmtest.c.
Referenced by main().
Definition at line 301 of file kmtest.c.
Definition at line 53 of file kmtest.c.
Referenced by main().
Definition at line 217 of file kmtest.c.
Referenced by RunTest().
Definition at line 253 of file kmtest.c.
PCSTR ErrorFileAndLine = "No error" |
Definition at line 34 of file kmtest.c.
Referenced by OutputError().
HANDLE KmtestHandle |
Definition at line 32 of file kmtest.c.
Referenced by KmtRunKernelTest(), ListTests(), main(), and RunTest().