CTest: Increase maximum output size recorded to 1MB 93/77893/3
authorDave Rigby <daver@couchbase.com>
Tue, 9 May 2017 14:55:14 +0000 (15:55 +0100)
committerDave Rigby <daver@couchbase.com>
Fri, 12 May 2017 09:00:39 +0000 (09:00 +0000)
While tests run via Jenkins record the output of each test, the size
recorded is extremely limited - only 1KB for test which pass. This can
be problematic when (for example) one is trying to analyse which tests
in a suite were slow - for many of our test programs we run many
(sometimes hundreds) of tests, and hence 1024 characters quickly cuts
off interesting data.

As such, increase the limit to 1MB.

Change-Id: I5b2e5e966507951e01e088829120931a0e3bef11
Reviewed-on: http://review.couchbase.org/77893
Reviewed-by: James Harrison <james.harrison@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>
CMakeLists.txt
CTestCustom.cmake.in [new file with mode: 0644]

index 0510264..21c4ec8 100644 (file)
@@ -97,6 +97,10 @@ CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
 CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
                 ${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbvbucketctl)
 
+# Customize some CTest properties
+CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake.in
+                ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake)
+
 SET(Python_ADDITIONAL_VERSIONS 2.6)
 FIND_PACKAGE(PythonInterp)
 
diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in
new file mode 100644 (file)
index 0000000..bc948db
--- /dev/null
@@ -0,0 +1,5 @@
+# Increase the default amount of test output captured to 1MB (both
+# pass and fail) - we have test binaries which consist of multiple
+# tests.
+set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1048576)
+set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 1048576)