|
1 | 1 | #
|
2 |
| -# Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved. |
| 2 | +# Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | #
|
4 | 4 | # The MySQL Connector/C++ is licensed under the terms of the GPLv2
|
5 | 5 | # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
|
6 | 6 | # MySQL Connectors. There are special exceptions to the terms and
|
7 | 7 | # conditions of the GPLv2 as it is applied to this software, see the
|
8 | 8 | # FLOSS License Exception
|
9 | 9 | # <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
|
10 |
| -# |
| 10 | +# |
11 | 11 | # This program is free software; you can redistribute it and/or modify
|
12 | 12 | # it under the terms of the GNU General Public License as published
|
13 | 13 | # by the Free Software Foundation; version 2 of the License.
|
14 |
| -# |
| 14 | +# |
15 | 15 | # This program is distributed in the hope that it will be useful, but
|
16 | 16 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
17 | 17 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
18 | 18 | # for more details.
|
19 |
| -# |
| 19 | +# |
20 | 20 | # You should have received a copy of the GNU General Public License along
|
21 | 21 | # with this program; if not, write to the Free Software Foundation, Inc.,
|
22 | 22 | # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
23 | 23 | #
|
24 | 24 |
|
25 | 25 | IF(WIN32)
|
26 |
| - LINK_DIRECTORIES(../framework/$(ConfigurationName)) |
27 |
| - SET(MY_TARGET_LINK_LIBRARIES mysqlcppconn test_framework) |
| 26 | + LINK_DIRECTORIES(../framework/$(ConfigurationName)) |
| 27 | + SET(MY_TARGET_LINK_LIBRARIES mysqlcppconn test_framework) |
28 | 28 | # ADD_DEFINITIONS("-D_SECURE_SCL")
|
29 |
| - ADD_DEFINITIONS("-D_SCL_SECURE_NO_WARNINGS") |
30 |
| - ADD_DEFINITIONS("-D_CRT_SECURE_NO_WARNINGS") |
| 29 | + ADD_DEFINITIONS("-D_SCL_SECURE_NO_WARNINGS") |
| 30 | + ADD_DEFINITIONS("-D_CRT_SECURE_NO_WARNINGS") |
31 | 31 |
|
32 | 32 | ELSEIF(NOT WIN32)
|
33 |
| - SET(MY_TARGET_LINK_LIBRARIES mysqlcppconn test_framework) |
| 33 | + SET(MY_TARGET_LINK_LIBRARIES mysqlcppconn test_framework) |
34 | 34 | ENDIF(WIN32)
|
35 | 35 |
|
36 | 36 | IF(CMAKE_COMPILER_IS_GNUCC AND MYSQLCPPCONN_GCOV_ENABLE)
|
37 |
| - SET(MY_GCOV_LINK_LIBRARIES gcov) |
| 37 | + SET(MY_GCOV_LINK_LIBRARIES gcov) |
38 | 38 | ENDIF(CMAKE_COMPILER_IS_GNUCC AND MYSQLCPPCONN_GCOV_ENABLE)
|
39 | 39 |
|
40 | 40 | ADD_DEFINITIONS("-DWE_HAVE_DATATYPE_AGAIN")
|
41 | 41 |
|
42 | 42 | IF(MYSQLCPPCONN_TEST_NOT_IMPLEMENTED)
|
43 |
| - ADD_DEFINITIONS("-DINCLUDE_NOT_IMPLEMENTED_METHODS=1") |
| 43 | + ADD_DEFINITIONS("-DINCLUDE_NOT_IMPLEMENTED_METHODS=1") |
44 | 44 | ENDIF(MYSQLCPPCONN_TEST_NOT_IMPLEMENTED)
|
45 | 45 |
|
46 | 46 | SET(jdbctests_sources
|
47 |
| - ccpptests.cpp |
48 |
| - BaseTestFixture.cpp |
49 |
| - ../common/stringutils.cpp |
50 |
| - resources.cpp |
51 |
| - regression/EscapeProcessorRegressionTest.cpp |
52 |
| - compliance/ConnectionTest.cpp |
53 |
| - compliance/DatabaseMetaDataTest.cpp |
54 |
| - compliance/StatementTest.cpp |
55 |
| - compliance/ResultSetMetadataTest.cpp |
56 |
| - compliance/PreparedStatementTest.cpp |
57 |
| - simple/BlobTest.cpp |
58 |
| - regression/BlobRegressionTest.cpp |
59 |
| - regression/PreparedStatementRegressionTest.cpp |
60 |
| - simple/TransactionTest.cpp |
61 |
| - regression/SubqueriesRegressionTest.cpp |
62 |
| - compliance/UnbufferedRsStmtTest.cpp |
63 |
| - ) |
| 47 | + ccpptests.cpp |
| 48 | + BaseTestFixture.cpp |
| 49 | + ../common/stringutils.cpp |
| 50 | + resources.cpp |
| 51 | + regression/EscapeProcessorRegressionTest.cpp |
| 52 | + compliance/ConnectionTest.cpp |
| 53 | + compliance/DatabaseMetaDataTest.cpp |
| 54 | + compliance/StatementTest.cpp |
| 55 | + compliance/ResultSetMetadataTest.cpp |
| 56 | + compliance/PreparedStatementTest.cpp |
| 57 | + simple/BlobTest.cpp |
| 58 | + regression/BlobRegressionTest.cpp |
| 59 | + regression/PreparedStatementRegressionTest.cpp |
| 60 | + simple/TransactionTest.cpp |
| 61 | + regression/SubqueriesRegressionTest.cpp |
| 62 | + compliance/UnbufferedRsStmtTest.cpp |
| 63 | + ) |
64 | 64 |
|
65 | 65 | # It's convinient for VS users to have headers as part of project
|
66 | 66 | IF(WIN32)
|
67 |
| - SET(jdbctests_sources |
68 |
| - ${jdbctests_sources} |
69 |
| - BaseTestFixture.h |
70 |
| - ../common/stringutils.h |
71 |
| - resources.h |
72 |
| - regression/EscapeProcessorRegressionTest.h |
73 |
| - compliance/ConnectionTest.h |
74 |
| - compliance/DatabaseMetaDataTest.h |
75 |
| - compliance/StatementTest.h |
76 |
| - compliance/ResultSetMetadataTest.h |
77 |
| - compliance/PreparedStatementTest.h |
78 |
| - simple/BlobTest.h |
79 |
| - regression/BlobRegressionTest.h |
80 |
| - regression/PreparedStatementRegressionTest.h |
81 |
| - simple/TransactionTest.h |
82 |
| - regression/SubqueriesRegressionTest.h |
83 |
| - compliance/UnbufferedRsStmtTest.h |
84 |
| - ) |
| 67 | + SET(jdbctests_sources |
| 68 | + ${jdbctests_sources} |
| 69 | + BaseTestFixture.h |
| 70 | + ../common/stringutils.h |
| 71 | + resources.h |
| 72 | + regression/EscapeProcessorRegressionTest.h |
| 73 | + compliance/ConnectionTest.h |
| 74 | + compliance/DatabaseMetaDataTest.h |
| 75 | + compliance/StatementTest.h |
| 76 | + compliance/ResultSetMetadataTest.h |
| 77 | + compliance/PreparedStatementTest.h |
| 78 | + simple/BlobTest.h |
| 79 | + regression/BlobRegressionTest.h |
| 80 | + regression/PreparedStatementRegressionTest.h |
| 81 | + simple/TransactionTest.h |
| 82 | + regression/SubqueriesRegressionTest.h |
| 83 | + compliance/UnbufferedRsStmtTest.h |
| 84 | + ) |
85 | 85 | ENDIF(WIN32)
|
86 | 86 |
|
87 | 87 | ADD_EXECUTABLE(CJUnitTestsPort ${jdbctests_sources})
|
88 | 88 | TARGET_LINK_LIBRARIES(CJUnitTestsPort ${MY_TARGET_LINK_LIBRARIES} ${MY_GCOV_LINK_LIBRARIES})
|
89 | 89 |
|
| 90 | +#Copy sql.properties file to build dir |
| 91 | +file(COPY sql.properties DESTINATION ${CMAKE_BINARY_DIR}/test/CJUnitTestsPort/) |
| 92 | + |
90 | 93 | MESSAGE(STATUS "Configuring C/J junit tests port")
|
0 commit comments