diff options
author | David Tardon <dtardon@redhat.com> | 2011-04-24 12:00:35 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-04-24 12:00:35 +0200 |
commit | 95357d3144b817726507758c1314a82303c25157 (patch) | |
tree | f547b31eaab13f078e6c44579225ff2064f7380f /starmath/qa | |
parent | 9aa3b65bdc8f406470743966487f8bc2bf6ba78a (diff) |
reenable unit test
Diffstat (limited to 'starmath/qa')
-rw-r--r-- | starmath/qa/cppunit/makefile.mk | 147 | ||||
-rw-r--r-- | starmath/qa/cppunit/test_starmath.cxx | 7 | ||||
-rw-r--r-- | starmath/qa/cppunit/version.map | 34 |
3 files changed, 1 insertions, 187 deletions
diff --git a/starmath/qa/cppunit/makefile.mk b/starmath/qa/cppunit/makefile.mk deleted file mode 100644 index a61a13ed3783..000000000000 --- a/starmath/qa/cppunit/makefile.mk +++ /dev/null @@ -1,147 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=../.. -PRJNAME=starmath -TARGET=qa_cppunit - -ENABLE_EXCEPTIONS=TRUE - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -CFLAGSCXX += $(CPPUNIT_CFLAGS) - -# --- Libs --------------------------------------------------------- - -SHL1OBJS= \ - $(SLO)/test_starmath.obj \ - $(SLO)/test_nodetotextvisitors.obj - - -SHL1STDLIBS= \ - $(CPPUNITLIB) \ - $(EDITENGLIB) \ - $(SVXCORELIB) \ - $(SVXLIB) \ - $(SFX2LIB) \ - $(XMLOFFLIB) \ - $(SVTOOLLIB) \ - $(TKLIB) \ - $(VCLLIB) \ - $(SVLLIB) \ - $(I18NPAPERLIB) \ - $(SOTLIB) \ - $(UNOTOOLSLIB) \ - $(TOOLSLIB) \ - $(COMPHELPERLIB) \ - $(CPPUHELPERLIB) \ - $(CPPULIB) \ - $(SALLIB) - -SHL1LIBS=$(SLB)$/starmath.lib - -SHL1TARGET= test_starmath -SHL1RPATH = NONE -SHL1IMPLIB= i$(SHL1TARGET) -# SHL1DEF= $(MISC)/$(SHL1TARGET).def -DEF1NAME=$(SHL1TARGET) -# DEF1EXPORTFILE= export.exp -SHL1VERSIONMAP= version.map - -# --- All object files --------------------------------------------- - -SLOFILES= \ - $(SHL1OBJS) \ - - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk - -.IF "$(OS)" == "WNT" -my_file = file:/// -.ELSE -my_file = file:// -.END - -ALLTAR: test - -test_components = \ - component/framework/util/fwk \ - component/toolkit/util/tk \ - component/sfx2/util/sfx \ - configmgr \ - vcl \ - mcnttype \ - i18npool -.IF "$(OS)" == "WNT" -test_components += \ - sysdtrans \ - ftransl -.ENDIF - -# Make a services.rdb with the services we know we need to get up and running -$(MISC)/services.input : makefile.mk - $(MKDIRHIER) $(@:d) - echo \ - '<list>$(test_components:^"<filename>":+".component</filename>")</list>' \ - > $@ - -$(MISC)/$(TARGET)/services.rdb .ERRREMOVE : makefile.mk $(MISC)/services.input - $(MKDIRHIER) $(@:d) - $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@.tmp \ - $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input - cat $(MISC)/$@.tmp | sed 's|/program/|/|g' > $@ - -#Tweak things so that we use the .res files in the solver -STAR_RESOURCEPATH:=$(PWD)/$(BIN)$(PATH_SEPERATOR)$(SOLARBINDIR) -.EXPORT : STAR_RESOURCEPATH - -.IF "$(OS)" != "DRAGONFLY" - -test .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb - @echo ---------------------------------------------------------- - @echo - start unit test \#1 on library $(SHL1TARGETN) - @echo ---------------------------------------------------------- - $(CPPUNITTESTER) $(SHL1TARGETN) --headless --invisible \ - '-env:UNO_TYPES=$(my_file)$(SOLARBINDIR)/udkapi.rdb $(my_file)$(SOLARBINDIR)$/types.rdb' \ - '-env:UNO_SERVICES=$(my_file)$(SOLARXMLDIR)/ure/services.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb'\ - -env:URE_INTERNAL_LIB_DIR="$(my_file)$(SOLARSHAREDBIN)" \ - -env:OOO_BASE_DIR="$(my_file)$(SOLARSHAREDBIN)" \ - -env:BRAND_BASE_DIR="$(my_file)$(SOLARSHAREDBIN)" - -.ELSE - -test .PHONY: $(SHL1TARGETN) - @echo ---------------------------------------------------------- - @echo - WARNING!!, test disabled on your platform - @echo - Please test manually, and enable if it works - @echo ---------------------------------------------------------- - -.ENDIF diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 310f0140d7a3..f502089b1f47 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -32,13 +32,8 @@ #include <windows.h> #endif -#include <cppunit/TestSuite.h> -#include <cppunit/TestFixture.h> -#include <cppunit/TestCase.h> -#include <cppunit/plugin/TestPlugIn.h> -#include <cppunit/extensions/HelperMacros.h> - #include <sal/config.h> +#include <sal/cppunit.h> #include <cppuhelper/bootstrap.hxx> #include <comphelper/processfactory.hxx> diff --git a/starmath/qa/cppunit/version.map b/starmath/qa/cppunit/version.map deleted file mode 100644 index 3308588ef6f8..000000000000 --- a/starmath/qa/cppunit/version.map +++ /dev/null @@ -1,34 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -UDK_3_0_0 { - global: - cppunitTestPlugIn; - - local: - *; -}; |