diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-09-16 19:34:59 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-09-17 06:14:54 +1000 |
commit | 1d3d50a9185462b1ec25f1902ccfba9c589f2a65 (patch) | |
tree | ffc3c467aa9683382c2211ed9163ac108d151912 /test | |
parent | ae4d720417fbac1abecf8eaba47b122366211390 (diff) | |
download | flac-1d3d50a9185462b1ec25f1902ccfba9c589f2a65.tar.gz |
Switch test scripts to bash.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_bins.sh | 2 | ||||
-rwxr-xr-x | test/test_compression.sh | 2 | ||||
-rwxr-xr-x | test/test_flac.sh | 2 | ||||
-rwxr-xr-x | test/test_grabbag.sh | 2 | ||||
-rwxr-xr-x | test/test_libFLAC++.sh | 2 | ||||
-rwxr-xr-x | test/test_libFLAC.sh | 2 | ||||
-rwxr-xr-x | test/test_metaflac.sh | 2 | ||||
-rwxr-xr-x | test/test_replaygain.sh | 14 | ||||
-rwxr-xr-x | test/test_seeking.sh | 2 | ||||
-rwxr-xr-x | test/test_streams.sh | 2 | ||||
-rwxr-xr-x | test/test_wrapper.sh | 3 |
11 files changed, 18 insertions, 17 deletions
diff --git a/test/test_bins.sh b/test/test_bins.sh index a277a554..6d48572e 100755 --- a/test/test_bins.sh +++ b/test/test_bins.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2001-2009 Josh Coalson diff --git a/test/test_compression.sh b/test/test_compression.sh index 073f4411..3c484180 100755 --- a/test/test_compression.sh +++ b/test/test_compression.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2012 Xiph.Org Foundation diff --git a/test/test_flac.sh b/test/test_flac.sh index 498f7a83..5e061a9f 100755 --- a/test/test_flac.sh +++ b/test/test_flac.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2001-2009 Josh Coalson diff --git a/test/test_grabbag.sh b/test/test_grabbag.sh index 12b3e9cf..ac5ebe57 100755 --- a/test/test_grabbag.sh +++ b/test/test_grabbag.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2001-2009 Josh Coalson diff --git a/test/test_libFLAC++.sh b/test/test_libFLAC++.sh index faa6203b..0fe82e2a 100755 --- a/test/test_libFLAC++.sh +++ b/test/test_libFLAC++.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2002-2009 Josh Coalson diff --git a/test/test_libFLAC.sh b/test/test_libFLAC.sh index 1be373dd..74c04ee8 100755 --- a/test/test_libFLAC.sh +++ b/test/test_libFLAC.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2001-2009 Josh Coalson diff --git a/test/test_metaflac.sh b/test/test_metaflac.sh index c4e155a5..d7cef5d9 100755 --- a/test/test_metaflac.sh +++ b/test/test_metaflac.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2002-2009 Josh Coalson diff --git a/test/test_replaygain.sh b/test/test_replaygain.sh index eeaf6d63..d77e78e8 100755 --- a/test/test_replaygain.sh +++ b/test/test_replaygain.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2002-2009 Josh Coalson @@ -64,8 +64,8 @@ flacfile="replaygain.flac" run_flac () { if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then - echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac $*" >>test_metaflac.valgrind.log - valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 flac --no-error-on-compression-fail $* 4>>test_metaflac.valgrind.log + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac $*" >>test_replaygain.valgrind.log + valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 flac --no-error-on-compression-fail $* 4>>test_replaygain.valgrind.log else flac --no-error-on-compression-fail $* fi @@ -74,8 +74,8 @@ run_flac () run_metaflac () { if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then - echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 metaflac $*" >>test_metaflac.valgrind.log - valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 metaflac $* 4>>test_metaflac.valgrind.log + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 metaflac $*" >>test_replaygain.valgrind.log + valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 metaflac $* 4>>test_replaygain.valgrind.log else metaflac $* fi @@ -87,8 +87,8 @@ run_metaflac_silent () run_metaflac $* else if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then - echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 metaflac $*" >>test_metaflac.valgrind.log - valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 metaflac $* 2>/dev/null 4>>test_metaflac.valgrind.log + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=50 metaflac $*" >>test_replaygain.valgrind.log + valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 metaflac $* 2>/dev/null 4>>test_replaygain.valgrind.log else metaflac $* 2>/dev/null fi diff --git a/test/test_seeking.sh b/test/test_seeking.sh index 8057038b..3386ff25 100755 --- a/test/test_seeking.sh +++ b/test/test_seeking.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2004-2009 Josh Coalson diff --git a/test/test_streams.sh b/test/test_streams.sh index 14baf839..81cf8a8f 100755 --- a/test/test_streams.sh +++ b/test/test_streams.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # FLAC - Free Lossless Audio Codec # Copyright (C) 2001-2009 Josh Coalson diff --git a/test/test_wrapper.sh b/test/test_wrapper.sh index 3832a922..17d544ab 100755 --- a/test/test_wrapper.sh +++ b/test/test_wrapper.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # This test script should exit on the first failure. @@ -7,5 +7,6 @@ ./test_grabbag.sh ./test_flac.sh ./test_metaflac.sh +./test_replaygain.sh ./test_seeking.sh ./test_streams.sh |