source: trunk/src/kernel32/testcase/ConsoleCtrlHandler.mak@ 10010

Last change on this file since 10010 was 8772, checked in by sandervl, 23 years ago

KSO: added testcases for SetConsoleCtrlHandler, GenerateConsoleCtrlEvent & MultiByteToWideChar

File size: 1.6 KB
Line 
1# $Id: ConsoleCtrlHandler.mak,v 1.1 2002-06-26 07:11:03 sandervl Exp $
2#
3# SetConsoleCtrlHandler and GenerateConsoleCtrlEvent testcases.
4#
5# Copyright (c) 2002 knut st. osmundsen (bird@anduin.net)
6#
7# Project Odin Software License can be found in LICENSE.TXT
8#
9#
10
11
12#
13# Pre Setup Config.
14#
15
16
17#
18# Include Setup.
19#
20PATH_ROOT=..\..\..
21!include $(PATH_ROOT)\$(BUILD_SETUP_MAK)
22!include $(PATH_MAKE)\testsuite.tools.mk
23
24
25#
26# Post Setup Config
27#
28TARGET_NAME = ConsoleCtrlHandler
29MAKEFILE = $(TARGET_NAME).mak
30BUILD_OWN_TESTCASE_RULE = 1
31
32
33#
34# Targets and libraries (if non default)
35#
36TARGET_LIBS = \
37$(LIB_OS)\
38!if "$(BUILD_PLATFORM)" == "OS2"
39$(PATH_LIB)\kernel32.lib\
40!endif
41$(LIB_C_OBJ)
42
43
44
45#
46# Include Processing Rules.
47#
48!include $(MAKE_INCLUDE_PROCESS)
49
50
51#
52# The testcase Rule.
53#
54testcase:
55 @$(ECHO) $(CLRFIL)ConsoleCtrlHandler$(CLRTXT) - Running testcases.$(CLRRST)
56 $(TS_EXEC_1) "Negative testing of GenerateConsoleCtrlEvent." $(TS_EXEC_2) testcase-20
57 $(TS_EXEC_1) "Negative testing of SetConsoleCtrlHandler." $(TS_EXEC_2) testcase-21
58 $(TS_EXEC_1) "Multiple handlers." $(TS_EXEC_2) testcase-22
59 $(TS_EXEC_1) "Multiple handlers. Singel Removal." $(TS_EXEC_2) testcase-23
60 $(TS_EXEC_1) "Multiple handlers. Complex Removal." $(TS_EXEC_2) testcase-24
61 @$(ECHO) $(CLRFIL)ConsoleCtrlHandler$(CLRTXT) - Testcases Completed.$(CLRRST)
62
63#
64# All in one rule.
65# (Makefiles are fun! :-)
66#
67testcase-20 testcase-21 testcase-22 testcase-23 testcase-24 testcase-1 testcase-2 testcase-3:
68 $(TARGET) $(@:testcase-=)
69
Note: See TracBrowser for help on using the repository browser.