sb118: adapted remaining */qa/unoapi tests to new framework
This commit is contained in:
parent
02c5e0d346
commit
6272f8f84d
3 changed files with 72 additions and 16 deletions
1
sc/prj/build.lst
Executable file → Normal file
1
sc/prj/build.lst
Executable file → Normal file
|
@ -48,3 +48,4 @@ sc sc\addin\datefunc nmake - all sc_addfu sc_add sc_sdi sc_inc NULL
|
|||
sc sc\addin\rot13 nmake - all sc_adrot sc_add sc_sdi sc_inc NULL
|
||||
sc sc\addin\util nmake - all sc_adutil sc_addfu sc_adrot sc_sdi sc_inc NULL
|
||||
sc sc\util nmake - all sc_util sc_addfu sc_adrot sc_adutil sc_app sc_attr sc_cctrl sc_cosrc sc_data sc_dbgui sc_dif sc_docsh sc_drfnc sc_excel sc_form sc_html sc_lotus sc_qpro sc_misc sc_name sc_nvipi sc_opt sc_page sc_rtf sc_scalc sc_style sc_tool sc_uisrc sc_undo sc_unobj sc_view sc_xcl97 sc_xml sc_acc sc_ftools sc_inc sc_vba NULL
|
||||
sc sc\qa\unoapi nmake - all sc_qa_unoapi NULL
|
||||
|
|
51
sc/qa/unoapi/Test.java
Normal file
51
sc/qa/unoapi/Test.java
Normal file
|
@ -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.sc.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", "sc.sce", "-xcl", "knownissues.xcl", "-tdoc",
|
||||
"testdocuments", "-cs", connection.getDescription()));
|
||||
}
|
||||
|
||||
private final OfficeConnection connection = new OfficeConnection();
|
||||
}
|
|
@ -1,15 +1,10 @@
|
|||
#*************************************************************************
|
||||
#
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# Copyright 2008 by Sun Microsystems, Inc.
|
||||
#
|
||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
#
|
||||
# OpenOffice.org - a multi-platform office productivity suite
|
||||
#
|
||||
# $RCSfile: makefile.mk,v $
|
||||
#
|
||||
# $Revision: 1.8 $
|
||||
#
|
||||
# This file is part of OpenOffice.org.
|
||||
#
|
||||
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
|
@ -26,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=sc
|
||||
TARGET=qa_unoapi
|
||||
PRJ = ../..
|
||||
PRJNAME = sc
|
||||
TARGET = qa_unoapi
|
||||
|
||||
.IF "$(OOO_JUNIT_JAR)" != ""
|
||||
PACKAGE = org/openoffice/sc/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 sc.sce -xcl knownissues.xcl -tdoc $(PWD)$/testdocuments
|
||||
.END
|
||||
|
|
Loading…
Reference in a new issue