X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=t%2Ftest-lib.sh;h=75249fe32b0b0e159b4b6ad1773efa2673b2cd22;hp=0e702b53c9b4c4150418dc0e2a07e55949817b04;hb=e072e2a4feb9879f66bc4847a5007cec07b5f5f7;hpb=e9b00a14a4653d767a9d0fe885aa0b6d56c42180 diff --git a/t/test-lib.sh b/t/test-lib.sh index 0e702b53..75249fe3 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1,9 +1,8 @@ #!/bin/bash -# paraslash test suite helper functions -# Licensed under the GPL v2. For licencing details see COPYING. -# uses ideas and code from git's test-lib.sh, Copyright (c) 2005 Junio C Hamano - +# Test suite helper functions, uses ideas and code from git's test-lib.sh, +# Copyright (c) 2005 Junio C Hamano. Licensed under the GPL v2, see file +# COPYING. get_audio_file_paths() { @@ -156,7 +155,7 @@ test_require_executables() test_duration() { local t=$(exec 2>&1 1>/dev/null; time -p "$@") - result=$(awk '{print $2 * 1000}' <<< $t) + result=$(awk '{print $2 * 1000; exit 0}' <<< "$t") } test_expect_success() @@ -272,7 +271,7 @@ fixup_dirs() { local wd=$(pwd) - test_dir="$wd/${0%/*}" + test_dir="$(realpath $wd/${0%/*})" test_audio_file_dir="$test_dir/audio_files" [[ -z "$o_results_dir" ]] && o_results_dir="$test_dir/test-results" @@ -311,7 +310,7 @@ fi fixup_dirs [[ -z "$o_executables" ]] && o_executables="para_afh para_audioc para_audiod - para_client para_fade para_filter para_gui para_recv para_server + para_client para_mixer para_filter para_gui para_recv para_server para_write" for exe in $o_executables; do export $(tr 'a-z' 'A-Z' <<< $exe)="$o_executables_dir/$exe"