Merge lp:~gabipetrovay/zorba/add-test-directory-exceptions into lp:zorba

Proposed by Gabriel Petrovay
Status: Merged
Approved by: Gabriel Petrovay
Approved revision: 10499
Merged at revision: 10500
Proposed branch: lp:~gabipetrovay/zorba/add-test-directory-exceptions
Merge into: lp:zorba
Diff against target: 123 lines (+44/-16)
4 files modified
cmake_modules/Windows/FindCURL.cmake (+23/-8)
cmake_modules/Windows/ProxyFindModule.cmake (+2/-2)
cmake_modules/ZorbaModule.cmake (+13/-3)
test/rbkt/Queries/CMakeLists.txt (+6/-3)
To merge this branch: bzr merge lp:~gabipetrovay/zorba/add-test-directory-exceptions
Reviewer Review Type Date Requested Status
Gabriel Petrovay (community) Approve
Review via email: mp+78742@code.launchpad.net

Commit message

Interpreting the second parameter of ADD_TEST_DIRECTORY as an exception list. Those tests will be removed from the tests to be executed.

Description of the change

Interpreting the second parameter of ADD_TEST_DIRECTORY as an exception list. Those tests will be removed from the tests to be executed.

This allows for disabling some tests in exceptional cases (like segmentation faults on Windows)

To post a comment you must log in.
Revision history for this message
Gabriel Petrovay (gabipetrovay) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job add-test-directory-exceptions-2011-10-09T01-43-06.193Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake_modules/Windows/FindCURL.cmake'
2--- cmake_modules/Windows/FindCURL.cmake 2011-09-26 12:50:56 +0000
3+++ cmake_modules/Windows/FindCURL.cmake 2011-10-09 01:19:25 +0000
4@@ -31,13 +31,28 @@
5
6 IF (CURL_FOUND)
7
8- # find the needed DLL's
9- FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "libcurl" "curllib")
10- FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "libeay32")
11- FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "openldap")
12- FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "ssleay32")
13-
14- # find additional DLL's
15- FIND_DLL_WIN32 (libsasl.dll)
16+ IF (EXISTS "${FOUND_LOCATION}/curl.exe")
17+
18+ MESSAGE (STATUS "Found CURL binary distribution")
19+
20+ # find the needed DLL's
21+ FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "libcurl" "curllib")
22+ FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "libeay32")
23+ FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "openldap")
24+ FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "ssleay32")
25+
26+ ELSE (EXISTS "${FOUND_LOCATION}/curl.exe")
27+
28+ MESSAGE (STATUS "Found CURL source build")
29+
30+ # find the needed DLL's
31+ FIND_PACKAGE_DLL_WIN32 (${FOUND_LOCATION} "libcurl" "curllib")
32+
33+ # find additional DLL's
34+ FIND_DLL_WIN32 ("libeay32.dll")
35+ FIND_DLL_WIN32 ("ssleay32.dll")
36+ #FIND_DLL_WIN32 (libsasl.dll)
37+
38+ ENDIF (EXISTS "${FOUND_LOCATION}/curl.exe")
39
40 ENDIF (CURL_FOUND)
41
42=== modified file 'cmake_modules/Windows/ProxyFindModule.cmake'
43--- cmake_modules/Windows/ProxyFindModule.cmake 2011-10-05 20:22:04 +0000
44+++ cmake_modules/Windows/ProxyFindModule.cmake 2011-10-09 01:19:25 +0000
45@@ -243,7 +243,7 @@
46 TMP_DLL_VAR
47 "${NAME}.dll"
48 PATHS "${LIBRARY_LOCATION}"
49- PATH_SUFFIXES "bin" "bin/Release"
50+ PATH_SUFFIXES "bin" "bin/Release" "lib"
51 NO_DEFAULT_PATH
52 )
53
54@@ -308,7 +308,7 @@
55 TMP_DLL_VAR
56 "${NAME}"
57 PATHS "${LIBRARY_LOCATION}"
58- PATH_SUFFIXES "bin" "bin/Release"
59+ PATH_SUFFIXES "bin" "bin/Release" "lib"
60 NO_DEFAULT_PATH
61 )
62
63
64=== modified file 'cmake_modules/ZorbaModule.cmake'
65--- cmake_modules/ZorbaModule.cmake 2011-10-06 11:11:13 +0000
66+++ cmake_modules/ZorbaModule.cmake 2011-10-09 01:19:25 +0000
67@@ -553,11 +553,21 @@
68
69 ENDMACRO(expected_failure)
70
71-# Convenience macro for adding tests in a standard format. QQQ doc!
72-MACRO(ADD_TEST_DIRECTORY TEST_DIR)
73+# Convenience macro for adding tests in a standard format.
74+# Parameters:
75+# TEST_DIR - all the .xq files in this directory will be added as tests
76+# ARGV1 - if this is present, it will be interpreted as a list of
77+# exceptions. The list items will be removed from the list of
78+# files found in TEST_DIR.
79+MACRO (ADD_TEST_DIRECTORY TEST_DIR)
80 # QQQ error-check: Queries directory exists, some tests found...
81 FILE(GLOB_RECURSE TESTFILES FOLLOW_SYMLINKS
82 RELATIVE "${TEST_DIR}/Queries" "${TEST_DIR}/Queries/*.xq")
83+
84+ FOREACH (EXCEPTION ${ARGV1})
85+ LIST (REMOVE_ITEM TESTFILES ${EXCEPTION})
86+ ENDFOREACH (EXCEPTION)
87+
88 SET(TESTCOUNTER 0)
89 FOREACH(TESTFILE ${TESTFILES})
90 SET(TESTNAME "${PROJECT_NAME}/${TESTFILE}")
91@@ -579,7 +589,7 @@
92 ENDIF (${TESTMOD} EQUAL 0)
93 ENDFOREACH(TESTFILE)
94 MESSAGE(STATUS "Added ${TESTCOUNTER} tests in ${TEST_DIR}")
95-ENDMACRO(ADD_TEST_DIRECTORY)
96+ENDMACRO (ADD_TEST_DIRECTORY)
97
98 # Macro to install a basic CMake config file for a module. Provide a
99 # source and binary directory. Result will be installed in binary
100
101=== modified file 'test/rbkt/Queries/CMakeLists.txt'
102--- test/rbkt/Queries/CMakeLists.txt 2011-09-12 23:22:24 +0000
103+++ test/rbkt/Queries/CMakeLists.txt 2011-10-09 01:19:25 +0000
104@@ -246,7 +246,12 @@
105 ENDIF(XVERMAJ EQUAL 2)
106
107 IF(WIN32)
108- EXPECTED_FAILURE(test/rbkt/zorba/eval/eval_schema2 3137594)
109+ EXPECTED_FAILURE(test/rbkt/zorba/versioning/external1 870991)
110+ EXPECTED_FAILURE(test/rbkt/zorba/versioning/external2 870991)
111+
112+ EXPECTED_FAILURE(test/rbkt/zorba/versioning/link1 871061)
113+ EXPECTED_FAILURE(test/rbkt/zorba/xqdoc/moduleDocumentation 871062)
114+
115 EXPECTED_FAILURE(test/rbkt/zorba/file/createWriteReadDeleteSeries 3276394)
116 ENDIF(WIN32)
117
118@@ -268,5 +273,3 @@
119
120 EXPECTED_FAILURE(test/rbkt/zorba/http-client/put/put3_binary_element 3391756)
121 EXPECTED_FAILURE(test/rbkt/zorba/http-client/post/post3_binary_element 3391756)
122-
123-# vim:set et sw=2 ts=2:

Subscribers

People subscribed via source and target branches