Skip to content

Commit aa2b8f1

Browse files
committed
Run tests under valgrind memcheck on QEMU
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent 82d2903 commit aa2b8f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 1 addition & 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

0 commit comments

Comments
 (0)