summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-10-30 17:50:59 +0200
committerDavid Tardon <dtardon@redhat.com>2010-10-30 17:50:59 +0200
commit53cb376d74b108d783f4a40c8e23ce54b5f4fd90 (patch)
tree5472db2142bb43c3338e647e86b8004b6d5245ef
parent6559d60992c5d67ee3632f5ce8c6b92f69ea06e8 (diff)
fix building of tests
-rw-r--r--tools/qa/makefile.mk6
-rw-r--r--tools/qa/test_pathutils.cxx9
-rw-r--r--tools/qa/version.map2
-rw-r--r--tools/test/export.map2
-rw-r--r--tools/test/makefile.mk1
-rw-r--r--tools/test/tests.cxx16
6 files changed, 15 insertions, 21 deletions
diff --git a/tools/qa/makefile.mk b/tools/qa/makefile.mk
index abaea848c1..167f082182 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 7e07c4d93b..70bd82e0a9 100644
--- a/tools/qa/test_pathutils.cxx
+++ b/tools/qa/test_pathutils.cxx
@@ -31,7 +31,10 @@
#include <cwchar>
-#include "testshl/simpleheader.hxx"
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/plugin/TestPlugIn.h>
+
#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 f313c44bd7..0dbbcc5a73 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 f313c44bd7..0dbbcc5a73 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 ab2cfd8e66..573dd91f73 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 387775ebed..14559ee129 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 <testshl/simpleheader.hxx>
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/plugin/TestPlugIn.h>
+
#include <rtl/math.hxx>
#include <tools/fract.hxx>
-#include <stdio.h>
-
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: */