summaryrefslogtreecommitdiffstats
path: root/debian/tests/patches/disable-db-tests.diff
blob: 7d148b9f108822ce1689b25e4d1a669a8aab7032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
diff -urN smoketest-old/data/Test_DB.xml smoketest/data/Test_DB.xml
--- a/smoketest-old/data/Basic/Standard/Test_DB.xml	2011-12-20 16:05:52.000000000 +0000
+++ b/smoketest/data/Basic/Standard/Test_DB.xml	2011-12-29 23:09:08.000000000 +0000
@@ -30,9 +30,6 @@
 
 const cMessageDatabaseService = "Database Service"
 const cMessageDatabaseOpen = "Open Database"
-const cMessageDatabaseInsert = "Insert record into Database"
-const cMessageDatabaseDelete = "Delete record from Database"
-const cMessageDatabaseSeek = "Read other record from Database"
 const cMessageDatabaseClose = "Close Database"
 
 Sub TestDB
@@ -81,48 +78,6 @@
         LogTestResult( "Database "+ cMessageDatabaseService, TRUE )
     End If
 
-    gCurrentTestCase = cDBInsert
-    sCurrentMessage = cMessageDatabaseInsert
-
-    oRowSet.ActiveConnection = oDBConnection
-
-    oRowSet.CommandType = com.sun.star.sdb.CommandType.COMMAND
-    oRowSet.Command = "SELECT * FROM " + sTable
-    oRowSet.execute()
-
-    oRowSet.moveToInsertRow
-    oRowSet.updateString(5, sTestString)
-
-    oRowSet.insertRow()
-    nRowCount=oRowSet.RowCount
-
-    oRowSet.moveToCurrentRow()
-
-    bResult = (oRowSet.getString(5) = sTestString)
-    LogTestResult( "Database "+ cMessageDatabaseInsert, bResult )
-
-    'delete only if insert passed
-
-    if (bResult) Then
-        gCurrentTestCase = cDBDelete
-        sCurrentMessage = cMessageDatabaseDelete
-        oRowSet.deleteRow()
-        bResult = (nRowCount - oRowSet.RowCount = 0)
-        if ( bResult ) Then
-            oRowSet.next()
-            bResult = (nRowCount - oRowSet.RowCount = 1)
-        End If
-        LogTestResult( "Database "+ cMessageDatabaseDelete, bResult )
-    End If
-
-    ' read other record
-
-    gCurrentTestCase = cDBSeek
-    sCurrentMessage = cMessageDatabaseSeek
-    oRowSet.first()
-    bResult = not (oRowSet.getString(5) = sTestString)
-    LogTestResult( "Database "+ cMessageDatabaseSeek, bResult )
-
     gCurrentTestCase = cDBClose
     sCurrentMessage = cMessageDatabaseClose
     oDBConnection.Dispose()
diff --git a/dbaccess/Module_dbaccess.mk b/dbaccess/Module_dbaccess.mk
index 204854748ec1..992ae1ed17c2 100644
--- a/dbaccess/Module_dbaccess.mk
+++ b/dbaccess/Module_dbaccess.mk
@@ -32,63 +32,11 @@ $(eval $(call gb_Module_add_l10n_targets,dbaccess,\
 	AllLangMoTarget_dba \
 ))
 
-ifneq ($(OS),iOS)
-ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
-# remove if we have a be file for this
-ifeq ($(ENDIANNESS),little)
-$(eval $(call gb_Module_add_check_targets,dbaccess,\
-    CppunitTest_dbaccess_firebird_regression_test \
-))
-endif
-$(eval $(call gb_Module_add_check_targets,dbaccess,\
-    CppunitTest_dbaccess_firebird_test \
-))
-endif
-
-$(eval $(call gb_Module_add_check_targets,dbaccess,\
-	CppunitTest_dbaccess_dialog_save \
-	CppunitTest_dbaccess_empty_stdlib_save \
-	CppunitTest_dbaccess_nolib_save \
-	CppunitTest_dbaccess_macros_test \
-	CppunitTest_dbaccess_hsqlschema_import \
-))
-
-ifeq ($(ENABLE_JAVA),TRUE)
-$(eval $(call gb_Module_add_check_targets,dbaccess,\
-    CppunitTest_dbaccess_hsqldb_test \
-    CppunitTest_dbaccess_RowSetClones \
-))
-endif
-
-# This runs a suite of performance tests on embedded firebird and HSQLDB.
-# Instructions on running the test can be found in qa/unit/embeddedb_performancetest
-ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
-ifeq ($(ENABLE_JAVA),TRUE)
-$(eval $(call gb_Module_add_check_targets,dbaccess,\
-    CppunitTest_dbaccess_embeddeddb_performancetest \
-))
-endif
-endif
-
-$(eval $(call gb_Module_add_subsequentcheck_targets,dbaccess,\
-	JunitTest_dbaccess_complex \
-    JunitTest_dbaccess_unoapi \
-))
-
-ifneq ($(DISABLE_PYTHON),TRUE)
-ifneq ($(ENABLE_JAVA),)
-$(eval $(call gb_Module_add_subsequentcheck_targets,dbaccess,\
-	PythonTest_dbaccess_python \
-))
-endif
-endif
-
 # screenshots
 $(eval $(call gb_Module_add_screenshot_targets,dbaccess,\
     CppunitTest_dbaccess_dialogs_test \
 ))
 
-endif
 endif
 
 # vim: set noet sw=4 ts=4: