Author: tfaber Date: Mon Jun 13 17:29:02 2011 New Revision: 52215
URL: http://svn.reactos.org/svn/reactos?rev=52215&view=rev Log: [KMTESTS] - add a minimal example test so there's something to see when running kmtest - remove _DLL and __USE_CRTIMP in accordance with r52213
Added: branches/GSoC_2011/KMTestSuite/kmtests/example/ (with props) branches/GSoC_2011/KMTestSuite/kmtests/example/Example.c (with props) Modified: branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv.rbuild branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/testlist.c
Modified: branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/CM... ============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt [iso-8859-1] (original) +++ branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt [iso-8859-1] Mon Jun 13 17:29:02 2011 @@ -14,6 +14,8 @@ kmtest_drv/log.c kmtest_drv/testlist.c
+ example/Example.c + kmtest_drv/kmtest_drv.rc)
add_library(kmtest_drv SHARED ${KMTEST_DRV_SOURCE}) @@ -29,8 +31,6 @@ # set_rc_compiler()
-add_definitions(-D_DLL -D__USE_CRTIMP) - list(APPEND KMTEST_SOURCE kmtest/kmtest.c kmtest/service.c
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/example/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Mon Jun 13 17:29:02 2011 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+)
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/example/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details.
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/example/ ------------------------------------------------------------------------------ bugtraq:url = http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/example/ ------------------------------------------------------------------------------ tsvn:logminsize = 10
Added: branches/GSoC_2011/KMTestSuite/kmtests/example/Example.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/ex... ============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/example/Example.c (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/example/Example.c [iso-8859-1] Mon Jun 13 17:29:02 2011 @@ -1,0 +1,16 @@ +/* + * PROJECT: ReactOS kernel-mode tests + * LICENSE: GPLv2+ - See COPYING in the top level directory + * PURPOSE: Kernel-Mode Test Suite Example Test kernel-mode part + * PROGRAMMER: Thomas Faber thfabba@gmx.de + */ + +#include <ntddk.h> +#include <kmt_test.h> +#include <kmt_log.h> + +VOID Test_Example(VOID) +{ + /* TODO: this should be trace(), as in winetests */ + LogPrint("Message from kernel\n"); +}
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/example/Example.c ------------------------------------------------------------------------------ svn:eol-style = native
Modified: branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv.rbuild URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/km... ============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv.rbuild [iso-8859-1] (original) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv.rbuild [iso-8859-1] Mon Jun 13 17:29:02 2011 @@ -9,4 +9,7 @@ <file>log.c</file> <file>testlist.c</file> </directory> + <directory name="example"> + <file>Example.c</file> + </directory> </module>
Modified: branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/testlist.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/km... ============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/testlist.c [iso-8859-1] (original) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest_drv/testlist.c [iso-8859-1] Mon Jun 13 17:29:02 2011 @@ -8,7 +8,10 @@ #include <stddef.h> #include <kmt_test.h>
+KMT_TESTFUNC Test_Example; + const KMT_TEST TestList[] = { + { "Example", Test_Example }, { NULL, NULL } };