From 500349d305680bfa8d09528f63eab532d26c7d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 30 Jan 2016 12:39:56 +0100 Subject: Add a valgrind test script. --- tools/valgrind_test/valgrind_test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tools/valgrind_test/valgrind_test (limited to 'tools/valgrind_test') diff --git a/tools/valgrind_test/valgrind_test b/tools/valgrind_test/valgrind_test new file mode 100755 index 0000000..ae25dbc --- /dev/null +++ b/tools/valgrind_test/valgrind_test @@ -0,0 +1,21 @@ +#!/bin/bash + +valgrind_log_file="valgrind_test.log" +dg_log_file="drumgizmo.log" +valgrind_options="--leak-check=full --log-file=$valgrind_log_file --show-leak-kinds=all --track-origins=yes" +midi_file="../../test/midi/file1.mid" +wav_file_prefix="valgrind_test" +midimap="../../test/kit/midimap.xml" +drumkit="../../test/kit/kit1.xml" + +echo "========================================" +echo "Starting the valgrind test" +echo +echo "Valgrind output file: $valgrind_log_file" +echo "DrumGizmo output file: $dg_log_file" +echo "========================================" +echo + +sed -n '/LEAK SUMMARY:/,$p' $valgrind_log_file + +valgrind $valgrind_options ../../drumgizmo/./drumgizmo -i midifile -I file=$midi_file,midimap=$midimap -o wavfile -O file=$wav_file_prefix $drumkit > $dg_log_file -- cgit v1.2.3