diff options
author | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2011-01-11 21:16:21 +0100 |
---|---|---|
committer | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2011-01-11 21:16:21 +0100 |
commit | f27dec459621543c9dcd94c72ab6af8147b8b4d6 (patch) | |
tree | 6a10b93a8ef8afa598052d814ad38e2a6e44bd50 /xmloff | |
parent | cc72dd1a32cf6acaba613fa6ea289a7bd89ef1d2 (diff) |
gnumake3: more work on junit subsequenttest migration
Diffstat (limited to 'xmloff')
-rwxr-xr-x | xmloff/JunitTest_xmloff_unoapi.mk | 45 | ||||
-rw-r--r-- | xmloff/Module_xmloff.mk | 4 | ||||
-rw-r--r-- | xmloff/prj/build.lst | 3 | ||||
-rw-r--r-- | xmloff/qa/unoapi/Test.java | 5 |
4 files changed, 52 insertions, 5 deletions
diff --git a/xmloff/JunitTest_xmloff_unoapi.mk b/xmloff/JunitTest_xmloff_unoapi.mk new file mode 100755 index 000000000000..78cd23137410 --- /dev/null +++ b/xmloff/JunitTest_xmloff_unoapi.mk @@ -0,0 +1,45 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2011 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. +# +#************************************************************************* + +$(eval $(call gb_JunitTest_JunitTest,xmloff_unoapi)) + +$(eval $(call gb_JunitTest_set_defs,xmloff_unoapi,\ + $$(DEFS) \ + -Dorg.openoffice.test.arg.sce=$(SRCDIR)/xmloff/qa/unoapi/xmloff.sce \ + -Dorg.openoffice.test.arg.xcl=$(SRCDIR)/xmloff/qa/unoapi/knownissues.xcl \ + -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/xmloff/qa/unoapi/testdocuments \ +)) + +$(eval $(call gb_JunitTest_add_sourcefiles,xmloff_unoapi,\ + xmloff/qa/unoapi/Test \ +)) + +$(eval $(call gb_JunitTest_add_classes,xmloff_unoapi,\ + org.openoffice.xmloff.qa.unoapi.Test \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/xmloff/Module_xmloff.mk b/xmloff/Module_xmloff.mk index eacc83068dad..d17caa0c3b4b 100644 --- a/xmloff/Module_xmloff.mk +++ b/xmloff/Module_xmloff.mk @@ -34,6 +34,10 @@ $(eval $(call gb_Module_add_targets,xmloff,\ Package_inc \ )) +$(eval $(call gb_Module_add_subsequentcheck_targets,xmloff,\ + JunitTest_xmloff_unoapi \ +)) + #todo: map file #todo: xmlkywd.lib - built, but never used?! diff --git a/xmloff/prj/build.lst b/xmloff/prj/build.lst index d075f1fc6fcb..4c79df8777a9 100644 --- a/xmloff/prj/build.lst +++ b/xmloff/prj/build.lst @@ -1,5 +1,2 @@ xo xmloff : LIBXSLT:libxslt offapi svl vos NULL zxo xmloff\prj nmake - all xo_prj NULL - -xo xmloff\qa\unoapi nmake - all xo_qa_unoapi NULL - diff --git a/xmloff/qa/unoapi/Test.java b/xmloff/qa/unoapi/Test.java index d66144f108e7..833c2d770c9f 100644 --- a/xmloff/qa/unoapi/Test.java +++ b/xmloff/qa/unoapi/Test.java @@ -27,6 +27,7 @@ package org.openoffice.xmloff.qa.unoapi; import org.openoffice.Runner; import org.openoffice.test.OfficeConnection; +import org.openoffice.test.Argument; import static org.junit.Assert.*; public final class Test { @@ -43,8 +44,8 @@ public final class Test { @org.junit.Test public void test() { assertTrue( Runner.run( - "-sce", "xmloff.sce", "-xcl", "knownissues.xcl", "-tdoc", - "testdocuments", "-cs", connection.getDescription())); + "-sce", Argument.get("sce"), "-xcl", Argument.get("xcl"), "-tdoc", + Argument.get("tdoc"), "-cs", connection.getDescription())); } private final OfficeConnection connection = new OfficeConnection(); |