Commits

Anonymous committed ccd0baa

gnumake4: dbaccess: subsequent tests

Comments (0)

Files changed (3)

dbaccess/JunitTest_dbaccess_complex.mk

 
 $(eval $(call gb_JunitTest_JunitTest,dbaccess_complex,SRCDIR))
 
+$(eval $(call gb_JunitTest_set_defs,dbaccess_complex,\
+	$$(DEFS) \
+	-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/dbaccess/qa/dbaccess \
+))
+
 $(eval $(call gb_JunitTest_add_sourcefiles,dbaccess_complex,\
 	dbaccess/qa/complex/dbaccess/ApplicationController \
 	dbaccess/qa/complex/dbaccess/Beamer \
 ))
 
 $(eval $(call gb_JunitTest_add_classes,dbaccess_complex,\
-	complex.dbaccess.ApplicationController \
 	complex.dbaccess.Beamer \
+	complex.dbaccess.DatabaseDocument \
+	complex.dbaccess.PropertyBag \
+))
+# deactivated since sb123;
+# apparently most of these fail because OOo does not find JVM?
+#	complex.dbaccess.ApplicationController \
 	complex.dbaccess.DataSource \
-	complex.dbaccess.DatabaseDocument \
 	complex.dbaccess.Parser \
-	complex.dbaccess.PropertyBag \
 	complex.dbaccess.Query \
 	complex.dbaccess.QueryInQuery \
 	complex.dbaccess.RowSet \
 	complex.dbaccess.SingleSelectQueryComposer \
 	complex.dbaccess.UISettings \
 	complex.dbaccess.CopyTableWizard \
-	complex.dbaccess.CRMBasedTestCase \
-	complex.dbaccess.CopyTableInterActionHandler \
-	complex.dbaccess.DatabaseApplication \
-	complex.dbaccess.FileHelper \
-	complex.dbaccess.RowSetEventListener \
-	complex.dbaccess.TestCase \
-))
 
 # vim: set noet sw=4 ts=4:

dbaccess/JunitTest_dbaccess_unoapi.mk

 	$$(DEFS) \
 	-Dorg.openoffice.test.arg.sce=$(SRCDIR)/dbaccess/qa/unoapi/dbaccess.sce \
 	-Dorg.openoffice.test.arg.xcl=$(SRCDIR)/dbaccess/qa/unoapi/knownissues.xcl \
+	-Dorg.openoffice.test.arg.ini=$(SRCDIR)/dbaccess/qa/unoapi/dbaccess.props \
 	-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/dbaccess/qa/unoapi/testdocuments \
 ))
 

dbaccess/qa/unoapi/Test.java

 
 import org.openoffice.Runner;
 import org.openoffice.test.OfficeConnection;
+import org.openoffice.test.Argument;
 import static org.junit.Assert.*;
 
 public final class Test {
     @org.junit.Test public void test() {
         assertTrue(
             Runner.run(
-                "-sce", "dbaccess.sce", "-xcl", "knownissues.xcl", "-ini",
-                "dbaccess.props", "-tdoc", "testdocuments", "-cs",
-                connection.getDescription()));
+                "-sce", Argument.get("sce"),
+                "-xcl", Argument.get("xcl"),
+                "-ini", Argument.get("ini"),
+                "-tdoc", Argument.get("tdoc"),
+                "-cs", connection.getDescription()));
     }
 
     private final OfficeConnection connection = new OfficeConnection();