aboutsummaryrefslogtreecommitdiff
path: root/test/cxxtest/sample/winddk
diff options
context:
space:
mode:
authorMax Horn2006-03-29 10:25:48 +0000
committerMax Horn2006-03-29 10:25:48 +0000
commit3820593bb8dfdca4e2e17c70b278065b7f7894d9 (patch)
treedf3e8bebda3abcd99d0882dc9e8c6410f86850fb /test/cxxtest/sample/winddk
parent9c94670e22cb68e32fd38c0d2b009539e35d4a71 (diff)
downloadscummvm-rg350-3820593bb8dfdca4e2e17c70b278065b7f7894d9.tar.gz
scummvm-rg350-3820593bb8dfdca4e2e17c70b278065b7f7894d9.tar.bz2
scummvm-rg350-3820593bb8dfdca4e2e17c70b278065b7f7894d9.zip
bringing cxxtest-3.10.1 to ScummVM's main branch
svn-id: r21488
Diffstat (limited to 'test/cxxtest/sample/winddk')
-rw-r--r--test/cxxtest/sample/winddk/Makefile2
-rw-r--r--test/cxxtest/sample/winddk/Makefile.inc15
-rw-r--r--test/cxxtest/sample/winddk/RunTests.tpl13
-rw-r--r--test/cxxtest/sample/winddk/SOURCES46
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
+