diff options
Diffstat (limited to 'test/cxxtest/sample/winddk')
| -rw-r--r-- | test/cxxtest/sample/winddk/Makefile | 2 | ||||
| -rw-r--r-- | test/cxxtest/sample/winddk/Makefile.inc | 15 | ||||
| -rw-r--r-- | test/cxxtest/sample/winddk/RunTests.tpl | 13 | ||||
| -rw-r--r-- | test/cxxtest/sample/winddk/SOURCES | 46 |
4 files changed, 76 insertions, 0 deletions
diff --git a/test/cxxtest/sample/winddk/Makefile b/test/cxxtest/sample/winddk/Makefile new file mode 100644 index 0000000000..8bf25333e8 --- /dev/null +++ b/test/cxxtest/sample/winddk/Makefile @@ -0,0 +1,2 @@ +# Standard DDK Makefile +!include $(NTMAKEENV)\makefile.def diff --git a/test/cxxtest/sample/winddk/Makefile.inc b/test/cxxtest/sample/winddk/Makefile.inc new file mode 100644 index 0000000000..edc6f8c8cb --- /dev/null +++ b/test/cxxtest/sample/winddk/Makefile.inc @@ -0,0 +1,15 @@ +# -*- Makefile -*- + +# +# Tell the DDK how to generate RunTests.cpp from RunTests.tpl and the tests +# + +PERL=perl +PYTHON=python +CXXTESTGEN=$(PERL) $(CXXTESTDIR)/cxxtestgen.pl +#CXXTESTGEN=$(PYTHON) $(CXXTESTDIR)/cxxtestgen.py + +TEST_SUITES=$(SUITESDIR)/*.h + +RunTests.cpp: RunTests.tpl $(TEST_SUITES) + $(CXXTESTGEN) -o $@ --template=RunTests.tpl $(TEST_SUITES) diff --git a/test/cxxtest/sample/winddk/RunTests.tpl b/test/cxxtest/sample/winddk/RunTests.tpl new file mode 100644 index 0000000000..917f14b4d6 --- /dev/null +++ b/test/cxxtest/sample/winddk/RunTests.tpl @@ -0,0 +1,13 @@ +// -*- C++ -*- + +// +// The DDK doesn't handle <iostream> too well +// +#include <cxxtest/StdioPrinter.h> + +int __cdecl main() +{ + return CxxTest::StdioPrinter().run(); +} + +<CxxTest world> diff --git a/test/cxxtest/sample/winddk/SOURCES b/test/cxxtest/sample/winddk/SOURCES new file mode 100644 index 0000000000..dae0148885 --- /dev/null +++ b/test/cxxtest/sample/winddk/SOURCES @@ -0,0 +1,46 @@ +# -*- Makefile -*- + +# +# Build this sample with the Windows DDK (XP or later) +# +SUITESDIR=.. +CXXTESTDIR=../.. + +# +# Build a user-mode application +# +TARGETNAME=RunTests +TARGETPATH=. +TARGETTYPE=PROGRAM + +# +# Make it a console-mode app +# +UMTYPE=console + +# +# Add CxxTest and tests directory to include path +# +INCLUDES=$(SUITESDIR);$(CXXTESTDIR) + +# +# Enable exception handling and standard library +# +USE_NATIVE_EH=1 +LINKER_FLAGS=$(LINKER_FLAGS) -IGNORE:4099 +386_WARNING_LEVEL=-W3 -WX -wd4290 + +TARGETLIBS=\ + $(CRT_LIB_PATH)\libcp.lib \ + $(CRT_LIB_PATH)\libc.lib + +# +# Only one source file -- the generated test runner +# +SOURCES=RunTests.cpp + +# +# This line tells the build utility to process Makefile.inc +# +NTTARGETFILE0=RunTests.cpp + |
