Skip to content

Instantly share code, notes, and snippets.

@estan
estan / db.txt
Created September 29, 2017 08:09
mysql> select * from buildgroup;
+----+--------------+-----------+---------------------+---------------------+---------------------+---------------------+--------------+-----------------------+-----------------+--------+
| id | name | projectid | starttime | endtime | autoremovetimeframe | description | summaryemail | includesubprojectotal | emailcommitters | type |
+----+--------------+-----------+---------------------+---------------------+---------------------+---------------------+--------------+-----------------------+-----------------+--------+
| 1 | Nightly | 1 | 1980-01-01 00:00:00 | 1980-01-01 00:00:00 | 0 | Nightly builds | 0 | 1 | 0 | Daily |
| 2 | Continuous | 1 | 1980-01-01 00:00:00 | 1980-01-01 00:00:00 | 0 | Continuous builds | 0 | 1 | 0 | Daily |
| 3 | Experimental | 1 | 1980-01-01 00:00:
@estan
estan / ctest.out.txt
Created September 21, 2017 07:15
ctest.out.txt
Run dashboard with model Buildbot
Source directory: /buildbot/b-insight-test/build
Build directory: /buildbot/b-insight-test/build/../insight-build-ctest
Reading ctest configuration file: /buildbot/b-insight-test/build/CTestConfig.cmake
Site: buildbot-w-xenial-4
Build name: b-insight-test-6-master-0.5.2-237-g0cd6b8f
Use Experimental tag: 20170921-0710
Configure project
Each . represents 1024 bytes of output
.. Size of output: 1K
cmake_minimum_required(VERSION 3.5)
project(testcase)
enable_testing()
add_executable(fail fail.cpp)
add_test(fail fail)
include(CTestCoverageCollectGCOV)
set(CTEST_SOURCE_DIRECTORY ${CTEST_SCRIPT_DIRECTORY})
set(CTEST_BINARY_DIRECTORY ${CTEST_SCRIPT_DIRECTORY}/../insight-build-ctest)
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(CTEST_COVERAGE_COMMAND "gcov")
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE ".*/moc_.*" ".*/ui_.*" ".*/tests/.*")
list(APPEND CTEST_EXTRA_COVERAGE_GLOB "*.cpp" "*.h")
[estan@newton insight (master *+$%=)]$ ctest -DCTEST_SITE="localhost" -DCTEST_BUILD_NAME="newton-kubuntu-x64" -V -S CTestScript.cmake
Run dashboard with model Experimental
Source directory: /home/estan/orexplore/insight
Build directory: /home/estan/orexplore/insight/../insight-build-ctest
Reading ctest configuration file: /home/estan/orexplore/insight/CTestConfig.cmake
Site: localhost
Build name: newton-kubuntu-x64
Use Experimental tag: 20170919-1226
Configure project
Each . represents 1024 bytes of output
@estan
estan / asan.txt
Created September 19, 2017 11:19
AddressSanitizer output
=================================================================
==6632==ERROR: LeakSanitizer: detected memory leaks
Direct leak Direct leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x7fdc59baf602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7fdc4c75398a ()
Direct leak Direct leak of 26 byte(s) in 1 object(s) allocated from:
#0 0x7fdc59baf602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7fdc4c747dd8 ()
@estan
estan / opensuse-docker-testcase.txt
Created September 19, 2017 09:28
OpenSUSE docker testcase
docker run --rm -ti opensuse:latest /bin/bash
zypper refresh
zypper install cmake curl
mkdir testcase
cd testcase
curl -O https://gist.githubusercontent.com/estan/90b8c55f98ba746e0869566a0d31a210/raw/f4173f2599d149837b4e9f7ddf9e73b952338046/CMakeLists.txt
curl -O https://gist.githubusercontent.com/estan/90b8c55f98ba746e0869566a0d31a210/raw/f4173f2599d149837b4e9f7ddf9e73b952338046/CTestScript.cmake
curl -O https://gist.githubusercontent.com/estan/90b8c55f98ba746e0869566a0d31a210/raw/f4173f2599d149837b4e9f7ddf9e73b952338046/test.cpp
ctest -DCTEST_SITE="localhost" -DCTEST_BUILD_NAME="test-build" -VV -S CTestScript.cmake
@estan
estan / transcript.txt
Created September 19, 2017 08:47
Docker testcase
docker run -ti ubuntu:16.04 /bin/bash
apt update && apt install cmake curl
mkdir testcase
cd testcase
curl -O https://gist.githubusercontent.com/estan/90b8c55f98ba746e0869566a0d31a210/raw/f4173f2599d149837b4e9f7ddf9e73b952338046/CMakeLists.txt
curl -O https://gist.githubusercontent.com/estan/90b8c55f98ba746e0869566a0d31a210/raw/f4173f2599d149837b4e9f7ddf9e73b952338046/CTestScript.cmake
curl -O https://gist.githubusercontent.com/estan/90b8c55f98ba746e0869566a0d31a210/raw/f4173f2599d149837b4e9f7ddf9e73b952338046/test.cpp
ctest -DCTEST_SITE="localhost" -DCTEST_BUILD_NAME="test-build" -VV -S CTestScript.cmake
@estan
estan / CMakeLists.txt
Created September 19, 2017 08:35
Run this with: ctest -DCTEST_SITE="localhost" -DCTEST_BUILD_NAME="test-build" -VV -S CTestScript.cmake
cmake_minimum_required(VERSION 3.5)
project(testcase)
add_executable(testcase test.cpp)
class UploadArtifacts(BuildStep, CompositeStepMixin):
src = None
host = None
path = None
url = None
logEnviron = False
renderables = ['src', 'path', 'url']
def __init__(self, src, host, path, url=None, workdir=None, **kwargs):