mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
![Pierre Schweitzer](/assets/img/avatar_default.png)
- Define a new macro function KmtGetSystemOrEmbeddedRoutineAddress() which is to be used to get a function address from Mm if it exists system-wide or to fallback to embedded function if it doesn't exist - Use this mechanism to add tests for the newly implemented FsRtlRemoveDotsFromPath() which is Vista+. That allows, with a single build (and thus, same binaries), testing a function in ReactOS and in Windows. svn path=/trunk/; revision=71046
145 lines
6.4 KiB
C
145 lines
6.4 KiB
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
* PURPOSE: Kernel-Mode Test Suite Driver test list
|
|
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
|
|
KMT_TESTFUNC Test_CmSecurity;
|
|
KMT_TESTFUNC Test_Example;
|
|
KMT_TESTFUNC Test_ExCallback;
|
|
KMT_TESTFUNC Test_ExDoubleList;
|
|
KMT_TESTFUNC Test_ExFastMutex;
|
|
KMT_TESTFUNC Test_ExHardError;
|
|
KMT_TESTFUNC Test_ExHardErrorInteractive;
|
|
KMT_TESTFUNC Test_ExInterlocked;
|
|
KMT_TESTFUNC Test_ExPools;
|
|
KMT_TESTFUNC Test_ExResource;
|
|
KMT_TESTFUNC Test_ExSequencedList;
|
|
KMT_TESTFUNC Test_ExSingleList;
|
|
KMT_TESTFUNC Test_ExTimer;
|
|
KMT_TESTFUNC Test_FsRtlDissect;
|
|
KMT_TESTFUNC Test_FsRtlExpression;
|
|
KMT_TESTFUNC Test_FsRtlLegal;
|
|
KMT_TESTFUNC Test_FsRtlMcb;
|
|
KMT_TESTFUNC Test_FsRtlRemoveDotsFromPath;
|
|
KMT_TESTFUNC Test_FsRtlTunnel;
|
|
KMT_TESTFUNC Test_IoCreateFile;
|
|
KMT_TESTFUNC Test_IoDeviceInterface;
|
|
KMT_TESTFUNC Test_IoEvent;
|
|
KMT_TESTFUNC Test_IoFilesystem;
|
|
KMT_TESTFUNC Test_IoInterrupt;
|
|
KMT_TESTFUNC Test_IoIrp;
|
|
KMT_TESTFUNC Test_IoMdl;
|
|
KMT_TESTFUNC Test_KeApc;
|
|
KMT_TESTFUNC Test_KeDeviceQueue;
|
|
KMT_TESTFUNC Test_KeDpc;
|
|
KMT_TESTFUNC Test_KeEvent;
|
|
KMT_TESTFUNC Test_KeGuardedMutex;
|
|
KMT_TESTFUNC Test_KeIrql;
|
|
KMT_TESTFUNC Test_KeMutex;
|
|
KMT_TESTFUNC Test_KeProcessor;
|
|
KMT_TESTFUNC Test_KeSpinLock;
|
|
KMT_TESTFUNC Test_KeTimer;
|
|
KMT_TESTFUNC Test_KernelType;
|
|
KMT_TESTFUNC Test_MmMdl;
|
|
KMT_TESTFUNC Test_MmSection;
|
|
KMT_TESTFUNC Test_MmReservedMapping;
|
|
KMT_TESTFUNC Test_NpfsConnect;
|
|
KMT_TESTFUNC Test_NpfsCreate;
|
|
KMT_TESTFUNC Test_NpfsFileInfo;
|
|
KMT_TESTFUNC Test_NpfsReadWrite;
|
|
KMT_TESTFUNC Test_NpfsVolumeInfo;
|
|
KMT_TESTFUNC Test_ObHandle;
|
|
KMT_TESTFUNC Test_ObReference;
|
|
KMT_TESTFUNC Test_ObType;
|
|
KMT_TESTFUNC Test_ObTypeClean;
|
|
KMT_TESTFUNC Test_ObTypeNoClean;
|
|
KMT_TESTFUNC Test_ObTypes;
|
|
KMT_TESTFUNC Test_PsNotify;
|
|
KMT_TESTFUNC Test_SeInheritance;
|
|
KMT_TESTFUNC Test_SeQueryInfoToken;
|
|
KMT_TESTFUNC Test_RtlAvlTree;
|
|
KMT_TESTFUNC Test_RtlException;
|
|
KMT_TESTFUNC Test_RtlIntSafe;
|
|
KMT_TESTFUNC Test_RtlMemory;
|
|
KMT_TESTFUNC Test_RtlRegistry;
|
|
KMT_TESTFUNC Test_RtlSplayTree;
|
|
KMT_TESTFUNC Test_RtlUnicodeString;
|
|
KMT_TESTFUNC Test_ZwAllocateVirtualMemory;
|
|
KMT_TESTFUNC Test_ZwCreateSection;
|
|
KMT_TESTFUNC Test_ZwMapViewOfSection;
|
|
KMT_TESTFUNC Test_ZwWaitForMultipleObjects;
|
|
|
|
const KMT_TEST TestList[] =
|
|
{
|
|
{ "CmSecurity", Test_CmSecurity },
|
|
{ "ExCallback", Test_ExCallback },
|
|
{ "ExDoubleList", Test_ExDoubleList },
|
|
{ "ExFastMutex", Test_ExFastMutex },
|
|
{ "ExHardError", Test_ExHardError },
|
|
{ "-ExHardErrorInteractive", Test_ExHardErrorInteractive },
|
|
{ "ExInterlocked", Test_ExInterlocked },
|
|
{ "ExPools", Test_ExPools },
|
|
{ "ExResource", Test_ExResource },
|
|
{ "ExSequencedList", Test_ExSequencedList },
|
|
{ "ExSingleList", Test_ExSingleList },
|
|
{ "-ExTimer", Test_ExTimer },
|
|
{ "Example", Test_Example },
|
|
{ "FsRtlDissect", Test_FsRtlDissect },
|
|
{ "FsRtlExpression", Test_FsRtlExpression },
|
|
{ "FsRtlLegal", Test_FsRtlLegal },
|
|
{ "FsRtlMcb", Test_FsRtlMcb },
|
|
{ "FsRtlRemoveDotsFromPath", Test_FsRtlRemoveDotsFromPath },
|
|
{ "FsRtlTunnel", Test_FsRtlTunnel },
|
|
{ "IoCreateFile", Test_IoCreateFile },
|
|
{ "IoDeviceInterface", Test_IoDeviceInterface },
|
|
{ "IoEvent", Test_IoEvent },
|
|
{ "IoFilesystem", Test_IoFilesystem },
|
|
{ "IoInterrupt", Test_IoInterrupt },
|
|
{ "IoIrp", Test_IoIrp },
|
|
{ "IoMdl", Test_IoMdl },
|
|
{ "KeApc", Test_KeApc },
|
|
{ "KeDeviceQueue", Test_KeDeviceQueue },
|
|
{ "KeDpc", Test_KeDpc },
|
|
{ "KeEvent", Test_KeEvent },
|
|
{ "KeGuardedMutex", Test_KeGuardedMutex },
|
|
{ "KeIrql", Test_KeIrql },
|
|
{ "KeMutex", Test_KeMutex },
|
|
{ "-KeProcessor", Test_KeProcessor },
|
|
{ "KeSpinLock", Test_KeSpinLock },
|
|
{ "KeTimer", Test_KeTimer },
|
|
{ "-KernelType", Test_KernelType },
|
|
{ "MmMdl", Test_MmMdl },
|
|
{ "MmSection", Test_MmSection },
|
|
{ "MmReservedMapping", Test_MmReservedMapping },
|
|
{ "NpfsConnect", Test_NpfsConnect },
|
|
{ "NpfsCreate", Test_NpfsCreate },
|
|
{ "NpfsFileInfo", Test_NpfsFileInfo },
|
|
{ "NpfsReadWrite", Test_NpfsReadWrite },
|
|
{ "NpfsVolumeInfo", Test_NpfsVolumeInfo },
|
|
{ "ObHandle", Test_ObHandle },
|
|
{ "ObReference", Test_ObReference },
|
|
{ "ObType", Test_ObType },
|
|
{ "-ObTypeClean", Test_ObTypeClean },
|
|
{ "-ObTypeNoClean", Test_ObTypeNoClean },
|
|
{ "ObTypes", Test_ObTypes },
|
|
{ "PsNotify", Test_PsNotify },
|
|
{ "SeInheritance", Test_SeInheritance },
|
|
{ "-SeQueryInfoToken", Test_SeQueryInfoToken },
|
|
{ "RtlAvlTreeKM", Test_RtlAvlTree },
|
|
{ "RtlExceptionKM", Test_RtlException },
|
|
{ "RtlIntSafeKM", Test_RtlIntSafe },
|
|
{ "RtlMemoryKM", Test_RtlMemory },
|
|
{ "RtlRegistryKM", Test_RtlRegistry },
|
|
{ "RtlSplayTreeKM", Test_RtlSplayTree },
|
|
{ "RtlUnicodeStringKM", Test_RtlUnicodeString },
|
|
{ "ZwAllocateVirtualMemory", Test_ZwAllocateVirtualMemory },
|
|
{ "ZwCreateSection", Test_ZwCreateSection },
|
|
{ "ZwMapViewOfSection", Test_ZwMapViewOfSection },
|
|
{ "ZwWaitForMultipleObjects", Test_ZwWaitForMultipleObjects},
|
|
{ NULL, NULL }
|
|
};
|