From 96295f0000107bca98f444413ce5879027b28e49 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 30 Oct 2010 17:50:59 +0200 Subject: fix building of tests --- tools/qa/makefile.mk | 6 +----- tools/qa/test_pathutils.cxx | 9 ++++++--- tools/qa/version.map | 2 +- tools/test/export.map | 2 +- tools/test/makefile.mk | 1 - tools/test/tests.cxx | 16 ++++++---------- 6 files changed, 15 insertions(+), 21 deletions(-) (limited to 'tools') diff --git a/tools/qa/makefile.mk b/tools/qa/makefile.mk index abaea848c1db..167f08218228 100644 --- a/tools/qa/makefile.mk +++ b/tools/qa/makefile.mk @@ -45,8 +45,4 @@ DEF1NAME = $(SHL1TARGET) SLOFILES = $(SHL1OBJS) .INCLUDE: target.mk - -ALLTAR: test - -test .PHONY: $(SHL1TARGETN) - $(TESTSHL2) $(SHL1TARGETN) -forward $(BIN)$/$(TARGET).rdb +.INCLUDE: _cppunit.mk diff --git a/tools/qa/test_pathutils.cxx b/tools/qa/test_pathutils.cxx index 801019e58b4a..99046a6211c9 100644 --- a/tools/qa/test_pathutils.cxx +++ b/tools/qa/test_pathutils.cxx @@ -31,7 +31,10 @@ #include -#include "testshl/simpleheader.hxx" +#include +#include +#include + #include "tools/pathutils.hxx" namespace { @@ -70,10 +73,10 @@ void Test::testBuildPath() { buildPath(L"", L"..\\a", L"..\\a"); } -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(Test, "alltests"); +CPPUNIT_TEST_SUITE_REGISTRATION(Test); } -NOADDITIONAL; +CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/tools/qa/version.map b/tools/qa/version.map index 7321bbca16ad..3308588ef6f8 100644 --- a/tools/qa/version.map +++ b/tools/qa/version.map @@ -27,7 +27,7 @@ UDK_3_0_0 { global: - registerAllTestFunction; + cppunitTestPlugIn; local: *; diff --git a/tools/test/export.map b/tools/test/export.map index 7321bbca16ad..3308588ef6f8 100644 --- a/tools/test/export.map +++ b/tools/test/export.map @@ -27,7 +27,7 @@ UDK_3_0_0 { global: - registerAllTestFunction; + cppunitTestPlugIn; local: *; diff --git a/tools/test/makefile.mk b/tools/test/makefile.mk index ab2cfd8e6676..573dd91f736d 100644 --- a/tools/test/makefile.mk +++ b/tools/test/makefile.mk @@ -46,7 +46,6 @@ SHL1OBJS= \ SHL1TARGET= tests SHL1STDLIBS= $(SALLIB) \ $(TOOLSLIB) \ - $(TESTSHL2LIB) \ $(CPPUNITLIB) SHL1IMPLIB= i$(SHL1TARGET) diff --git a/tools/test/tests.cxx b/tools/test/tests.cxx index 66d2ac50b352..a814fb2fea83 100644 --- a/tools/test/tests.cxx +++ b/tools/test/tests.cxx @@ -31,12 +31,13 @@ #include "precompiled_tools.hxx" // autogenerated file with codegen.pl -#include +#include +#include +#include + #include #include -#include - namespace tools { @@ -115,14 +116,9 @@ public: }; // ----------------------------------------------------------------------------- -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(tools::FractionTest, "FractionTest"); +CPPUNIT_TEST_SUITE_REGISTRATION(FractionTest); } // namespace tools - -// ----------------------------------------------------------------------------- - -// this macro creates an empty function, which will called by the RegisterAllFunctions() -// to let the user the possibility to also register some functions by hand. -NOADDITIONAL; +CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit