[Libreoffice-commits] core.git: sw/JunitTest_sw_complex.mk sw/PythonTest_sw_python.mk sw/qa
jmzambon
jeanmarczambon at gmail.com
Mon Dec 11 12:26:53 UTC 2017
sw/JunitTest_sw_complex.mk | 6 ------
sw/PythonTest_sw_python.mk | 2 +-
sw/qa/complex/writer/TestDocument.java | 31 -------------------------------
3 files changed, 1 insertion(+), 38 deletions(-)
New commits:
commit c4d0cd148128ceec55b95407d637d42e27426966
Author: jmzambon <jeanmarczambon at gmail.com>
Date: Sun Dec 10 14:20:59 2017 +0100
tdf#97362: convert sw java complex tests to Python (#final)
Move test documents to python folder.
Delete remaining java helper class "TestDocument" and parent folder.
Change-Id: I76ba4e82e96b39df207c337fc1f17052b750774d
Reviewed-on: https://gerrit.libreoffice.org/46188
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sw/JunitTest_sw_complex.mk b/sw/JunitTest_sw_complex.mk
index 79b87a5094cb..d39f39f22515 100644
--- a/sw/JunitTest_sw_complex.mk
+++ b/sw/JunitTest_sw_complex.mk
@@ -19,15 +19,9 @@
$(eval $(call gb_JunitTest_JunitTest,sw_complex))
-$(eval $(call gb_JunitTest_set_defs,sw_complex,\
- $$(DEFS) \
- -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/sw/qa/complex/writer/testdocuments \
-))
-
$(eval $(call gb_JunitTest_add_sourcefiles,sw_complex,\
sw/qa/complex/accessibility/AccessibleRelationSet \
sw/qa/complex/indeterminateState/CheckIndeterminateState \
- sw/qa/complex/writer/TestDocument \
))
$(eval $(call gb_JunitTest_use_jars,sw_complex,\
diff --git a/sw/PythonTest_sw_python.mk b/sw/PythonTest_sw_python.mk
index 2d1d8bb44eca..c47c5cbcbbd3 100644
--- a/sw/PythonTest_sw_python.mk
+++ b/sw/PythonTest_sw_python.mk
@@ -10,7 +10,7 @@
$(eval $(call gb_PythonTest_PythonTest,sw_python))
$(eval $(call gb_PythonTest_set_defs,sw_python,\
- TDOC="$(SRCDIR)/sw/qa/complex/writer/testdocuments" \
+ TDOC="$(SRCDIR)/sw/qa/python/testdocuments" \
))
$(eval $(call gb_PythonTest_add_modules,sw_python,$(SRCDIR)/sw/qa/python,\
diff --git a/sw/qa/complex/writer/TestDocument.java b/sw/qa/complex/writer/TestDocument.java
deleted file mode 100644
index da6c6d4573ae..000000000000
--- a/sw/qa/complex/writer/TestDocument.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package complex.writer;
-
-import java.io.File;
-import org.openoffice.test.OfficeFileUrl;
-import org.openoffice.test.Argument;
-
-final class TestDocument {
- public static String getUrl(String name) {
- return OfficeFileUrl.getAbsolute(new File(Argument.get("tdoc"), name));
- }
-
- private TestDocument() {}
-}
diff --git a/sw/qa/complex/writer/testdocuments/CheckCrossReferences.odt b/sw/qa/python/testdocuments/CheckCrossReferences.odt
similarity index 100%
rename from sw/qa/complex/writer/testdocuments/CheckCrossReferences.odt
rename to sw/qa/python/testdocuments/CheckCrossReferences.odt
diff --git a/sw/qa/complex/writer/testdocuments/CheckFlies.odt b/sw/qa/python/testdocuments/CheckFlies.odt
similarity index 100%
rename from sw/qa/complex/writer/testdocuments/CheckFlies.odt
rename to sw/qa/python/testdocuments/CheckFlies.odt
diff --git a/sw/qa/complex/writer/testdocuments/TESTMETA.odt b/sw/qa/python/testdocuments/TESTMETA.odt
similarity index 100%
rename from sw/qa/complex/writer/testdocuments/TESTMETA.odt
rename to sw/qa/python/testdocuments/TESTMETA.odt
diff --git a/sw/qa/complex/writer/testdocuments/TESTXMLID.odt b/sw/qa/python/testdocuments/TESTXMLID.odt
similarity index 100%
rename from sw/qa/complex/writer/testdocuments/TESTXMLID.odt
rename to sw/qa/python/testdocuments/TESTXMLID.odt
diff --git a/sw/qa/complex/writer/testdocuments/fdo39694.ott b/sw/qa/python/testdocuments/fdo39694.ott
similarity index 100%
rename from sw/qa/complex/writer/testdocuments/fdo39694.ott
rename to sw/qa/python/testdocuments/fdo39694.ott
More information about the Libreoffice-commits
mailing list