Skip to content

Commit f31f7b0

Browse files
authored
Merge pull request #459 from ldorau/Run_tests_under_valgrind_memcheck_on_QEMU
Run tests under valgrind memcheck on QEMU
2 parents b395576 + aa2b8f1 commit f31f7b0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scripts/qemu/run-build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repo=$1
1010
branch=$2
1111

1212
echo password | sudo -Sk apt update
13-
echo password | sudo -Sk apt install -y git cmake gcc g++ numactl libnuma-dev libhwloc-dev libjemalloc-dev libtbb-dev pkg-config
13+
echo password | sudo -Sk apt install -y git cmake gcc g++ numactl libnuma-dev libhwloc-dev libjemalloc-dev libtbb-dev pkg-config valgrind hwloc
1414

1515
numactl -H
1616

@@ -39,3 +39,7 @@ ctest --output-on-failure
3939
# run tests bound to a numa node
4040
numactl -N 0 ctest --output-on-failure
4141
numactl -N 1 ctest --output-on-failure
42+
43+
# run tests under valgrind
44+
echo "Running tests under valgrind memcheck ..."
45+
../test/test_valgrind.sh .. . memcheck

test/test_valgrind.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ rm -f umf_test-*.log umf_test-*.err
7373

7474
for test in $(ls -1 umf_test-*); do
7575
[ ! -x $test ] && continue
76+
echo "$test - starting ..."
7677
echo -n "$test "
7778
LOG=${test}.log
7879
ERR=${test}.err
@@ -92,6 +93,9 @@ for test in $(ls -1 umf_test-*); do
9293
umf_test-memspace_highest_capacity)
9394
FILTER='--gtest_filter="-*highestCapacityVerify*"'
9495
;;
96+
umf_test-provider_os_memory_multiple_numa_nodes)
97+
FILTER='--gtest_filter="-testNumaNodesAllocations/testNumaOnEachNode*:testNumaNodesAllocationsAllCpus/testNumaOnEachCpu.checkModePreferredEmptyNodeset*:testNumaNodesAllocationsAllCpus/testNumaOnEachCpu.checkModeLocal*"'
98+
;;
9599
esac
96100

97101
[ "$FILTER" != "" ] && echo -n "($FILTER) "

0 commit comments

Comments
 (0)