Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



From 3bffa7b2a431686eeedd7859eaba1ce22671d474 Mon Sep 17 00:00:00 2001
Message-Id: <3bffa7b2a431686eeedd7859eaba1ce22671d474.1299801754.git.Wilhelm.Pflueger@web.de>
From: Wilhelm Pflueger <Wilhelm.Pflueger@web.de>
Date: Fri, 11 Mar 2011 00:59:16 +0100
Subject: [PATCH] EasyHacks: Reanimated tests in ure/codemaker

---
 codemaker/prj/build.lst                            |    2 +-
 codemaker/test/cppumaker/makefile.mk               |    3 ++-
 .../test/cppumaker/test_codemaker_cppumaker.cxx    |    8 +++++---
 codemaker/test/cppumaker/version.map               |    3 ++-
 4 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/codemaker/prj/build.lst b/codemaker/prj/build.lst
index e0520d5..d9b1066 100644
--- a/codemaker/prj/build.lst
+++ b/codemaker/prj/build.lst
@@ -7,5 +7,5 @@ cm      codemaker\source\commoncpp                              nmake   -       all 
    cm_cpp cm_inc NULL
 cm     codemaker\source\cppumaker                              nmake   -       all     
cm_cppumaker    cm_codemaker cm_cpp cm_inc NULL
 cm     codemaker\source\commonjava                             nmake   -       all     cm_java 
cm_inc NULL
 cm     codemaker\source\javamaker                              nmake   -       all     
cm_javamaker cm_codemaker cm_java cm_inc NULL
-
+cm  codemaker\test\cppumaker                nmake   -   all cm_test_cppumaker NULL
 
diff --git a/codemaker/test/cppumaker/makefile.mk b/codemaker/test/cppumaker/makefile.mk
index 5060f75..21f9d0c 100644
--- a/codemaker/test/cppumaker/makefile.mk
+++ b/codemaker/test/cppumaker/makefile.mk
@@ -70,4 +70,5 @@ $(MISC)$/$(TARGET)$/types.urd: types.idl
     $(IDLC) -O$(MISC)$/$(TARGET) -I$(SOLARIDLDIR) -cid -we $<
 
 test .PHONY: $(SHL1TARGETN)
-    $(AUGMENT_LIBRARY_PATH) testshl2 $<
+    $(CPPUNITTESTER) $<
+#    $(AUGMENT_LIBRARY_PATH) testshl2 $<
diff --git a/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx 
b/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx
index a55cefa..6d9df43 100644
--- a/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx
+++ b/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx
@@ -367,7 +367,9 @@
 #include "com/sun/star/uno/Any.hxx"
 #include "com/sun/star/uno/Type.hxx"
 #include "com/sun/star/uno/TypeClass.hpp"
-#include "testshl/simpleheader.hxx"
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/plugin/TestPlugIn.h>
 #include "rtl/ustring.h"
 #include "rtl/ustring.hxx"
 
@@ -561,10 +563,10 @@ void Test::testConstants() {
         test::codemaker::cppumaker::Constants::unsignedHyperMax);
 }
 
-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/codemaker/test/cppumaker/version.map b/codemaker/test/cppumaker/version.map
index f313c44..7f11155 100644
--- a/codemaker/test/cppumaker/version.map
+++ b/codemaker/test/cppumaker/version.map
@@ -27,7 +27,8 @@
 
 UDK_3_0_0 {
     global:
-        registerAllTestFunction;
+        cppunitTestPlugIn;
+
 
     local:
         *;
-- 
1.7.0.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.