Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mbed-client/run_unit_tests_with_valgrind.sh
- Revision:
- 0:06ee5f8a484a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-client/run_unit_tests_with_valgrind.sh Sat Mar 18 22:37:16 2017 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+# Execute script with root path where to find binaries.
+# For example ./run_unit_tests_with_valgrind.sh ./build/x86-linux-native-coverage/test/mbedclient/
+
+input="binaries.txt"
+valgrind_logs="valgrind_logs"
+rm -rf $valgrind_logs
+mkdir $valgrind_logs
+find $1 -type f -executable -exec sh -c "file -i '{}' | grep -q 'x-executable; charset=binary'" \; -print > $input
+while file= read -r binary
+do
+ valgrind --track-origins=yes --xml=yes --xml-file="${valgrind_logs}/valgrind_$(basename $binary).xml" "$binary"
+done < "$input"