Use wine paths by default even if non-existent
[carla.git] / data / valgrind.sh
blob2198f41d1d81d3ed668dd04938e1920a2e36537b
1 #!/bin/bash
3 export CARLA_VALGRIND_TEST=1
4 export WINEDEBUG=-all
6 # export CARLA_DEV=1
7 # export PYTHONMALLOC=malloc
8 # export SKIP_STRIPPING=true
10 valgrind \
11 --tool=memcheck \
12 --leak-check=full \
13 --show-leak-kinds=all \
14 --track-origins=yes \
15 --gen-suppressions=all \
16 --suppressions=./data/valgrind.supp \
17 -- ./bin/carla-bridge-native internal "" carlapatchbay &
18 PID=$!
20 while true; do
21 if jack_lsp | grep -q Carla-Patchbay:output_1; then
22 jack_connect Carla-Patchbay:output_2 system:playback_2
23 jack_connect Carla-Patchbay:output_1 system:playback_1
24 # jack_connect Carla-Patchbay:events-out "a2j:ZynAddSubFX [129] (playback): ZynAddSubFX"
25 break
26 else
27 sleep 1
29 done
31 wait ${PID}
33 # export PYTHONMALLOC=malloc
34 # valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --gen-suppressions=all --suppressions=./data/valgrind.supp python3 ./source/frontend/carla