Commit graph

29 commits

Author SHA1 Message Date
Thomas Faber c588b3e5fc [KMTESTS]
- add RtlSplayTree test. Patch by arty (hacks by me ;])
- add RtlAvlTree test using the same code
- add kmtest_drivers and kmtest_all build targets

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53046
2011-08-03 11:21:35 +00:00
Thomas Faber 4230863f75 [KMTESTS]
- add kmt_platform.h that includes user or kernel headers as appropriate and allows Rtl tests to run in user mode without modification
- include kmt_platform.h from kmt_test.h, so that tests don't have to include separate headers. This also allows for a PCH

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53021
2011-08-01 21:53:52 +00:00
Thomas Faber f63c9159c8 [KMTESTS]
- probe user address in user mode
- don't free the result buffer before the driver unlocks it. Fixes assertion in ROS for large buffers

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52947
2011-07-28 09:00:56 +00:00
Thomas Faber c0ecebef26 [KMTESTS/RTL]
- add a concept test for Rtl functions, which can run unmodified in user/kernel mode

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52889
2011-07-26 07:40:19 +00:00
Thomas Faber c8c231d756 [KMTESTS]
- add missing function KmtAreInterruptsEnabled
- fix an MSVC warning

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52888
2011-07-26 07:38:43 +00:00
Thomas Faber 09ddc722bd [KMTESTS/EX]
- add quick'n'dirty tests for interlocked single/double list functions

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52870
2011-07-25 20:12:44 +00:00
Thomas Faber 928b5489ef [KMTESTS]
- add KeSpinLock test
- KeIrql: also test the actual stdcall versions of KeRaiseIrql/KeLowerIrql
- ExHardError: take advantage of r52847

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52869
2011-07-25 20:08:51 +00:00
Thomas Faber ca91b96107 [KMTESTS/KE]
- KeIrql: make use of the new build type features
- KeApc: test internals of enabling/disable APCs
[KMTESTS/EX]
- better portability for ExInterlocked test

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52782
2011-07-22 12:01:48 +00:00
Thomas Faber ed72d2fbd2 [KMTESTS]
- small structure improvement in kmt_test.h
- add globals to allow easy checking for UP/MP & Free/Checked builds, as that is required for some tests
- add KernelType example test demonstrating the above
- add a function to restore the irql (allows some failing tests to exit gracefully)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52781
2011-07-22 11:51:18 +00:00
Thomas Faber 7eb0e89e51 [KMTESTS]
- put driver files into 'bin' with the other tests instead of system32\drivers
- globally define NTDDI_VERSION=NTDDI_WS03_SP1 instead of doing it in each test
- fix testlist sorting (ASCII-order, but ignore leading minus)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52780
2011-07-22 11:33:17 +00:00
Thomas Faber 270b3045e7 [KMTESTS/EX]
- ExResource part 2: test concurrent acquisition of a resource in multiple threads
- ExInterlocked part 2: check calling convention correctness
- these show quite a number of bugs in ReactOS ;)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52674
2011-07-13 21:17:55 +00:00
Thomas Faber f7dc696190 [KMTESTS/EX]
- add a test for hard-error handling
- add test for interlocked functions (part 1)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52673
2011-07-13 20:08:05 +00:00
Thomas Faber ba142f75c3 [KMTESTS]
- add support for hidden tests also for kernel-mode
- small fixes and improvements

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52638
2011-07-11 18:03:19 +00:00
Thomas Faber 76b9429abf [KMTEST]
- improve user friendliness by making the service management functions actually work

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52599
2011-07-10 08:03:15 +00:00
Thomas Faber 363d5300d0 [KMTESTS]
- decrease log buffer size because ROS has a problem with unlocking it otherwise ;)
- add test for critical/guarded regions
- add test for executive resources (part 1)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52592
2011-07-09 22:02:54 +00:00
Thomas Faber af53d3dc25 [KMTESTS/KE]
- add a test for DPCs
- add a test for IRQ levels

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52567
2011-07-08 06:38:01 +00:00
Thomas Faber 9bfa0dd900 [KMTESTS]
- add support for special-purpose standalone drivers
- add standalone driver to Example test

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52550
2011-07-06 22:23:03 +00:00
Thomas Faber 8d003b1a1c [KMTESTS]
- add a user-mode part to the example testlist.c
- misc fixes

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52549
2011-07-06 18:55:21 +00:00
Thomas Faber bf054095df [KMTESTS]
- prepare the device object for being opened multiple times (required for communication with special-purpose drivers)
- more verbose DPRINTs
- implement utility functions for app<->driver communication
- misc fixes

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52541
2011-07-04 19:47:49 +00:00
Thomas Faber 459f4ac630 [KMTESTS]
- rework the kmtest loader application to follow everything else's coding style and to allow user-mode test parts

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52519
2011-07-03 18:53:26 +00:00
Thomas Faber 991bc0e366 [KMTESTS]
- add skip() functionality (with more useful syntax than Wine's)
- add format attributes for GCC
- do not show the full path of the source file for failed tests
- general cleanup

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52489
2011-06-29 08:51:00 +00:00
Thomas Faber 7a0fe29b5e [KMTESTS]
- add mostly untouched ports of the easy-to-do tests from kmtest_old

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52480
2011-06-27 08:49:23 +00:00
Thomas Faber 7d4da25d6e [KMTESTS]
- add START_TEST macro in case test functions ever have to be passed an argument
- add a few ok_* convenience macros
- remove unnecessary C library function renaming macros

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52371
2011-06-19 18:27:14 +00:00
Thomas Faber ba63f36790 [KMTESTS]
- add the proper testing framework functions for winetest-like feel
- remove thereby obsolete Log* functions
- update example test to show usage of the new macros

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52359
2011-06-19 09:23:03 +00:00
Thomas Faber dffa722bce [KMTESTS]
- reference streamout.c and provide a wctomb stub to have an any-IRQL vsnprintf implementation for the test framework

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52330
2011-06-18 11:03:28 +00:00
Thomas Faber a6b4eba335 [KMTESTS]
- use a shared memory buffer for storing test results to provide seamless communication between all test parts
- Now user mode code can easily add messages to the buffer

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52216
2011-06-13 17:50:07 +00:00
Thomas Faber 1de7bf0885 [KMTESTS]
- add a minimal example test so there's something to see when running kmtest
- remove _DLL and __USE_CRTIMP in accordance with r52213

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52215
2011-06-13 17:29:02 +00:00
Thomas Faber e95992c699 [KMTESTS]
- add basic driver that can list/run tests and log messages

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52168
2011-06-10 05:34:00 +00:00
Thomas Faber 22216d2eb7 [KMTESTS]
- add simple loader application that can list/run tests from a driver via DeviceIoControl, and prints output to the console

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52157
2011-06-09 15:14:02 +00:00