diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-04-16 10:09:51 +0200 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-04-16 10:09:51 +0200 |
commit | 224dbf39c0782b97950acd1f4e74e5a1e66fcaed (patch) | |
tree | 45b2f5b1d3f1a88e65f70109e5a1112a2b118a2a /starmath | |
parent | 281ba7bdd44fc6fccacdec5fca877229e9be54d7 (diff) | |
parent | 05880bac6475e045694fb00806d807ab38e1f1e5 (diff) |
CWS-TOOLING: integrate CWS sb118
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/prj/build.lst | 1 | ||||
-rw-r--r-- | starmath/qa/unoapi/Test.java | 51 | ||||
-rw-r--r-- | starmath/qa/unoapi/makefile.mk | 30 | ||||
-rw-r--r-- | starmath/util/makefile.mk | 6 | ||||
-rw-r--r-- | starmath/util/sm.map | 8 | ||||
-rw-r--r-- | starmath/util/smd.map | 8 |
6 files changed, 74 insertions, 30 deletions
diff --git a/starmath/prj/build.lst b/starmath/prj/build.lst index cb6fd9358454..cbfff6772402 100644 --- a/starmath/prj/build.lst +++ b/starmath/prj/build.lst @@ -6,3 +6,4 @@ sm starmath\res get - all sm_res NULL sm starmath\sdi nmake - all sm_sdi NULL sm starmath\source nmake - all sm_sorce sm_sdi sm_inc NULL sm starmath\util nmake - all sm_util sm_sorce NULL +sm starmath\qa\unoapi nmake - all sm_qa_unoapi NULL diff --git a/starmath/qa/unoapi/Test.java b/starmath/qa/unoapi/Test.java new file mode 100644 index 000000000000..520491da3a8c --- /dev/null +++ b/starmath/qa/unoapi/Test.java @@ -0,0 +1,51 @@ +/************************************************************************* +* 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. +************************************************************************/ + +package org.openoffice.starmath.qa.unoapi; + +import org.openoffice.Runner; +import org.openoffice.test.OfficeConnection; +import static org.junit.Assert.*; + +public final class Test { + @org.junit.Before public void setUp() throws Exception { + connection.setUp(); + } + + @org.junit.After public void tearDown() + throws InterruptedException, com.sun.star.uno.Exception + { + connection.tearDown(); + } + + @org.junit.Test public void test() { + assertTrue( + Runner.run( + "-sce", "sm.sce", "-xcl", "knownissues.xcl", "-cs", + connection.getDescription())); + } + + private final OfficeConnection connection = new OfficeConnection(); +} diff --git a/starmath/qa/unoapi/makefile.mk b/starmath/qa/unoapi/makefile.mk index 93169ee51708..68fcfe744868 100644 --- a/starmath/qa/unoapi/makefile.mk +++ b/starmath/qa/unoapi/makefile.mk @@ -1,7 +1,6 @@ #************************************************************************* -# # 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 @@ -22,19 +21,28 @@ # version 3 along with OpenOffice.org. If not, see # <http://www.openoffice.org/license.html> # for a copy of the LGPLv3 License. -# -#************************************************************************* +#***********************************************************************/ -PRJ=..$/.. +.IF "$(OOO_SUBSEQUENT_TESTS)" == "" +nothing .PHONY: +.ELSE -PRJNAME=starmath -TARGET=qa_unoapi +PRJ = ../.. +PRJNAME = starmath +TARGET = qa_unoapi -.INCLUDE: settings.mk +.IF "$(OOO_JUNIT_JAR)" != "" +PACKAGE = org/openoffice/starmath/qa/unoapi +JAVATESTFILES = Test.java +JAVAFILES = $(JAVATESTFILES) +JARFILES = OOoRunner.jar ridl.jar test.jar +EXTRAJARFILES = $(OOO_JUNIT_JAR) +.END +.INCLUDE: settings.mk .INCLUDE: target.mk +.INCLUDE: installationtest.mk -ALLTAR : UNOAPI_TEST +ALLTAR : javatest -UNOAPI_TEST: - +$(SOLARENV)$/bin$/checkapi -sce sm.sce -xcl knownissues.xcl -tdoc $(PWD)$/testdocuments +.END diff --git a/starmath/util/makefile.mk b/starmath/util/makefile.mk index 09e738299419..1ba52411d721 100644 --- a/starmath/util/makefile.mk +++ b/starmath/util/makefile.mk @@ -48,7 +48,7 @@ RESLIB1SRSFILES=\ SHL1TARGET= sm$(DLLPOSTFIX) SHL1IMPLIB= smimp -SHL1VERSIONMAP= sm.map +SHL1VERSIONMAP=$(SOLARENV)/src/component.map SHL1DEF=$(MISC)$/$(SHL1TARGET).def DEF1NAME= $(SHL1TARGET) @@ -73,7 +73,7 @@ SHL1STDLIBS= \ SHL2TARGET= smd$(DLLPOSTFIX) SHL2IMPLIB= smdimp -SHL2VERSIONMAP= sm.map +SHL2VERSIONMAP=$(SOLARENV)/src/component.map SHL2DEF=$(MISC)$/$(SHL2TARGET).def DEF2NAME= $(SHL2TARGET) @@ -90,7 +90,7 @@ SHL2STDLIBS= \ $(SALLIB) SHL2DEPN= makefile.mk -SHL2VERSIONMAP= smd.map +SHL2VERSIONMAP=$(SOLARENV)/src/component.map SHL2OBJS= $(SLO)$/smdetect.obj \ $(SLO)$/detreg.obj \ $(SLO)$/eqnolefilehdr.obj diff --git a/starmath/util/sm.map b/starmath/util/sm.map deleted file mode 100644 index 62f014e12ba0..000000000000 --- a/starmath/util/sm.map +++ /dev/null @@ -1,8 +0,0 @@ -SM_1_0 { - global: - component_getImplementationEnvironment; - component_writeInfo; - component_getFactory; - local: - *; -}; diff --git a/starmath/util/smd.map b/starmath/util/smd.map deleted file mode 100644 index 62f014e12ba0..000000000000 --- a/starmath/util/smd.map +++ /dev/null @@ -1,8 +0,0 @@ -SM_1_0 { - global: - component_getImplementationEnvironment; - component_writeInfo; - component_getFactory; - local: - *; -}; |