summaryrefslogtreecommitdiffstats
path: root/third_party/rust/oneshot-uniffi/check_mem_leaks.sh
blob: 5a10835a0fad6a91a755cafccb7ef1c183311bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -eu

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"

for example_path in examples/*.rs; do
    example_filename=$(basename -- $example_path)
    example=${example_filename%.*}
    echo $example
    cargo valgrind run --example "$example"
done