mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:22:58 +00:00

* regtests: New directory. * regtests/kmregtests: Ditto. * regtests/kmrtint: Ditto. * regtests/regtests: Ditto. * regtests/shared: Ditto. * regtests/win32base: Ditto. * include/roskrnl.h: New file. * regtests/Makefile: Ditto. * regtests/kmregtests/.cvsignore: Ditto. * regtests/kmregtests/driver.c: Ditto. * regtests/kmregtests/kmregtests.h: Ditto. * regtests/kmregtests/Makefile: Ditto. * regtests/kmrtint/.cvsignore: Ditto. * regtests/kmrtint/kmrtint.c: Ditto. * regtests/kmrtint/kmrtint.def: Ditto. * regtests/kmrtint/kmrtint.edf: Ditto. * regtests/kmrtint/Makefile: Ditto. * regtests/regtests/.cvsignore: Ditto. * regtests/regtests/Makefile: Ditto. * regtests/regtests/regtests.c: Ditto. * regtests/shared/.cvsignore: Ditto. * regtests/shared/Makefile: Ditto. * regtests/shared/regtests.c: Ditto. * regtests/shared/regtests.h: Ditto. * regtests/win32base/.cvsignore: Ditto. * regtests/win32base/driver.c: Ditto. * regtests/win32base/file-1.c: Ditto. * regtests/win32base/Makefile: Ditto. * regtests/win32base/win32base.def: Ditto. * regtests/win32base/win32base.edf: Ditto. * tools/regtests.c: Ditto. * Makefile: Add target regtests. * config: Add SEH option. * rules.mak: Add tool REGTESTS. * bootdata/hivesys.inf: Add service kmregtests. * include/win32k/bitmaps.h (DIB_BitmapInfoSize): Correct prototype. * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Reverse wrong boolean expression. * ntoskrnl/ke/i386/usertrap.c (KiUserTrapHandler): Ditto. * tools/Makefile: Add tool regtests. * tools/config.mk: Handle SEH option. * tools/helper.mk: Support regression tests. svn path=/trunk/; revision=5083
44 lines
1.2 KiB
C
Executable file
44 lines
1.2 KiB
C
Executable file
/*
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: regtests/shared/regtests.h
|
|
* PURPOSE: Regression testing
|
|
* PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
|
* UPDATE HISTORY:
|
|
* 06-07-2003 CSH Created
|
|
*/
|
|
#include <ntos.h>
|
|
|
|
/* Valid values for Command parameter of TestRoutine */
|
|
#define TESTCMD_RUN 0 /* Buffer contains information about what failed */
|
|
#define TESTCMD_TESTNAME 1 /* Buffer contains description of test */
|
|
|
|
/* Valid values for return values of TestRoutine */
|
|
#define TS_EXCEPTION -1
|
|
#define TS_OK 0
|
|
#define TS_FAILED 1
|
|
|
|
/*
|
|
* Test routine prototype
|
|
* Command - The command to process
|
|
* Buffer - Pointer to buffer in which to return context information
|
|
*/
|
|
typedef int (*TestRoutine)(int Command, char *Buffer);
|
|
|
|
/* Test driver entry routine */
|
|
typedef VOID STDCALL (*TestDriverMain)();
|
|
|
|
typedef struct _ROS_TEST
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
TestRoutine Routine;
|
|
} ROS_TEST, *PROS_TEST;
|
|
|
|
extern LIST_ENTRY AllTests;
|
|
|
|
extern VOID InitializeTests();
|
|
extern VOID RegisterTests();
|
|
extern VOID PerformTests();
|
|
|
|
/* Routines provided by the driver */
|
|
extern PVOID AllocateMemory(ULONG Size);
|
|
extern VOID FreeMemory(PVOID Base);
|