5
# Script to generate and test common resampling
6
# use cases. The output files need to be verified
9
# ----------------------------------------------------------------------
10
# File: ecasound/manual-tests/test-rtnull.sh
11
# License: GPL (see ecasound/{AUTHORS,COPYING})
12
# ----------------------------------------------------------------------
14
# whether to skip md5sum checks
22
t=`( time -p $TESTECASOUND -q -f:16,1,44100 -i rtnull -o null -t:5.0 -z:nodb -z:nointbuf -b:128 2>/dev/null ) 2>&1 |grep real | cut -f2 -d' ' |cut -f1 -d'.'`
24
# test is succesful if the duration is 5.x or 6.x seconds
25
# (the duration varies somewhat due to process startup delays, etc,
26
# and is thus not exact)
27
test "x$t" = "x6" || test "x$t" = "x5" || error_exit
29
echo "Test run succesful."
b'\\ No newline at end of file'