2019-05-01 04:03:39 +03:00
|
|
|
jobs:
|
|
|
|
- job: Linux
|
|
|
|
pool:
|
2020-01-24 04:16:58 +03:00
|
|
|
vmImage: 'Ubuntu 18.04'
|
2019-05-01 04:03:39 +03:00
|
|
|
steps:
|
2019-05-01 04:12:43 +03:00
|
|
|
- bash: |
|
2020-01-24 04:16:58 +03:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install g++ liblttng-ust-dev uuid-dev -y
|
2019-05-01 04:12:43 +03:00
|
|
|
displayName: 'Install dependency packages'
|
|
|
|
|
2019-05-01 04:03:39 +03:00
|
|
|
- bash: |
|
|
|
|
mkdir deps
|
|
|
|
cd deps
|
2020-01-24 04:16:58 +03:00
|
|
|
wget https://www.efficios.com/files/babeltrace/babeltrace-2.0.0.tar.bz2
|
|
|
|
tar -xvf babeltrace-2.0.0.tar.bz2
|
|
|
|
cd babeltrace-2.0.0
|
|
|
|
sudo apt install libglib2.0-dev -y
|
|
|
|
BABELTRACE_DEV_MODE=1 BABELTRACE_DEBUG_MODE=1 ./configure --disable-debug-info --disable-man-pages
|
|
|
|
make -j2
|
2019-05-01 04:03:39 +03:00
|
|
|
sudo make install
|
2019-05-01 04:12:43 +03:00
|
|
|
displayName: 'Install babeltrace'
|
2019-05-01 04:03:39 +03:00
|
|
|
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: 'CMake Configure+Generate'
|
|
|
|
inputs:
|
2020-01-24 04:16:58 +03:00
|
|
|
cmakeArgs: '-DCMAKE_BUILD_TYPE=Debug ..'
|
2019-05-01 04:03:39 +03:00
|
|
|
|
|
|
|
- task: CMake@1
|
|
|
|
displayName: 'CMake Build'
|
|
|
|
inputs:
|
2020-01-24 04:16:58 +03:00
|
|
|
cmakeArgs: '--build . -- -j2'
|
|
|
|
|
|
|
|
- bash: |
|
|
|
|
sudo apt-get install lttng-tools valgrind -y
|
|
|
|
displayName: 'Install lttng-tools for tests'
|
2019-05-01 04:03:39 +03:00
|
|
|
|
|
|
|
- bash: |
|
|
|
|
cd build/test
|
|
|
|
mkdir testResults
|
2020-01-24 04:16:58 +03:00
|
|
|
# Currently babeltrace-2.0.0 has a known memory access problem when handling TraceLogging events
|
|
|
|
valgrind ./lttng-consumeTest -o testResults/TEST-LttngConsumeTest.xml -r junit
|
2019-05-01 04:03:39 +03:00
|
|
|
displayName: 'Run test binary'
|
|
|
|
continueOnError: true
|
|
|
|
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
displayName: 'Publish test results'
|
|
|
|
inputs:
|
|
|
|
testResultsFiles: '**/TEST-*.xml'
|