summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-02-14 15:30:34 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-02-14 15:30:34 +0000
commitf7d801d4668e1108ee75bc9adfa6993729a21370 (patch)
treea0d7c1ffb897efea98eeed9bff00f784f85649c6 /cpp/src
parent2f9190bc896c0d5aaaced4aad4b4f337d007d13b (diff)
downloadqpid-python-f7d801d4668e1108ee75bc9adfa6993729a21370.tar.gz
NO-JIRA: Rationalised unit test build
- Made an empty list of unit tests to build actually build all tests and made the default list empty, this gives much better behaviour in the usual case when adding and removing tests - Also sorted list of unit tests git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1446233 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/CMakeLists.txt85
1 files changed, 48 insertions, 37 deletions
diff --git a/cpp/src/tests/CMakeLists.txt b/cpp/src/tests/CMakeLists.txt
index 7f122891d0..b9b18a151b 100644
--- a/cpp/src/tests/CMakeLists.txt
+++ b/cpp/src/tests/CMakeLists.txt
@@ -98,63 +98,74 @@ endif (CMAKE_SYSTEM_NAME STREQUAL Windows)
# when running the tests. If you want to build a subset of the tests run
# ccmake and set unit_tests_to_build to the set you want to build.
-set(unit_tests_to_build
- exception_test
- RefCounted
- SessionState
- logging
- AsyncCompletion
- Url
- Uuid
- Shlib
- FieldValue
- FieldTable
+set(all_unit_tests
+ AccumulatedAckTest
Array
- QueueOptionsTest
- InlineAllocator
- InlineVector
- ClientSessionTest
- MessagingSessionTests
- SequenceSet
- StringUtils
- RangeSet
+ AsyncCompletion
AtomicValue
- QueueTest
- AccumulatedAckTest
- DtxWorkRecordTest
+ ClientMessage
+ ClientMessageTest
+ ClientSessionTest
+ ConsoleTest
DeliveryRecordTest
+ DtxWorkRecordTest
+ exception_test
ExchangeTest
+ FieldTable
+ FieldValue
+ FrameDecoder
+ FramingTest
HeadersExchangeTest
+ HeaderTest
+ InlineAllocator
+ InlineVector
+ logging
+ ManagementTest
+ MessageReplayTracker
MessageTest
+ MessagingSessionTests
+ PollableCondition
+ ProxyTest
QueueDepth
- QueueRegistryTest
- QueuePolicyTest
QueueFlowLimitTest
- FramingTest
- HeaderTest
+ QueueOptionsTest
+ QueuePolicyTest
+ QueueRegistryTest
+ QueueTest
+ RangeSet
+ RefCounted
+ RetryList
SequenceNumberTest
+ SequenceSet
+ SessionState
+ Shlib
+ StringUtils
+ SystemInfo
TimerTest
TopicExchangeTest
TxBufferTest
- ManagementTest
- MessageReplayTracker
- ConsoleTest
- ProxyTest
- RetryList
- FrameDecoder
- ClientMessageTest
- PollableCondition
+ Url
+ Uuid
Variant
- ClientMessage
- SystemInfo
${xml_tests}
+ )
+
+set(unit_tests_to_build
+ ""
CACHE STRING "Which unit tests to build"
)
mark_as_advanced(unit_tests_to_build)
+# If no unit_test specifically set then use all unit tests
+if (unit_tests_to_build)
+set(actual_unit_tests ${unit_tests_to_build})
+else()
+set(actual_unit_tests ${all_unit_tests})
+endif()
+
add_executable (unit_test unit_test
- ${unit_tests_to_build} ${platform_test_additions})
+ ${actual_unit_tests} ${platform_test_additions})
target_link_libraries (unit_test
${qpid_test_boost_libs}
qpidmessaging qpidbroker qmfconsole)