summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-09-16 19:34:59 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-09-17 06:14:54 +1000
commit1d3d50a9185462b1ec25f1902ccfba9c589f2a65 (patch)
treeffc3c467aa9683382c2211ed9163ac108d151912 /test
parentae4d720417fbac1abecf8eaba47b122366211390 (diff)
downloadflac-1d3d50a9185462b1ec25f1902ccfba9c589f2a65.tar.gz
Switch test scripts to bash.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_bins.sh2
-rwxr-xr-xtest/test_compression.sh2
-rwxr-xr-xtest/test_flac.sh2
-rwxr-xr-xtest/test_grabbag.sh2
-rwxr-xr-xtest/test_libFLAC++.sh2
-rwxr-xr-xtest/test_libFLAC.sh2
-rwxr-xr-xtest/test_metaflac.sh2
-rwxr-xr-xtest/test_replaygain.sh14
-rwxr-xr-xtest/test_seeking.sh2
-rwxr-xr-xtest/test_streams.sh2
-rwxr-xr-xtest/test_wrapper.sh3
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