run linux longhaul under valgrind memorychecks (#2266)
* change ctest to use memcheck * enable tests to run under memcheck * chmod run_tests_memcheck.sh * add git update-index --chmod=+x * git update-index --chmod=+x
This commit is contained in:
Родитель
18822be0cc
Коммит
3854b643ca
|
@ -19,11 +19,10 @@ jobs:
|
|||
sudo cat /etc/os-release
|
||||
sudo apt show valgrind
|
||||
sudo chmod --recursive ugo+rw cmake
|
||||
sudo chmod 755 jenkins/longhaul_c.sh
|
||||
sudo -E ./jenkins/longhaul_c.sh
|
||||
displayName: 'Build'
|
||||
- script: |
|
||||
cd cmake && sudo -E ../build_all/linux/run_tests.sh
|
||||
cd cmake && sudo -E ../build_all/linux/run_tests_memcheck.sh
|
||||
displayName: 'Run Tests'
|
||||
env:
|
||||
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
set -o errexit # Exit if command failed.
|
||||
set -o pipefail # Exit if pipe failed.
|
||||
|
||||
# Only for testing E2E behaviour !!!
|
||||
TEST_CORES=16
|
||||
|
||||
# Refresh dynamic libs to link to
|
||||
sudo ldconfig
|
||||
|
||||
ctest -T MemCheck --no-compress-output -C "Debug" -V -j $TEST_CORES --schedule-random
|
||||
|
Загрузка…
Ссылка в новой задаче