~ubuntu-branches/ubuntu/lucid/ecasound2.2/lucid

« back to all changes in this revision

Viewing changes to manual-tests/test-rtnull.sh

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2009-11-02 18:22:35 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091102182235-4ngh7699dmkgonyu
Tags: 2.7.0-1
* New upstream release.
* Depend on libreadline-dev instead of libreadline5-dev by request of
  Mattias Klose. It's now libreadline6-dev. (closes: #553748)
* Update menu file to use section Applications/ instead of Apps/.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
3
 
# version:20080324-1
4
 
#
5
 
# Script to generate and test common resampling
6
 
# use cases. The output files need to be verified
7
 
# manually.
8
 
#
9
 
# ----------------------------------------------------------------------
10
 
# File: ecasound/manual-tests/test-rtnull.sh
11
 
# License: GPL (see ecasound/{AUTHORS,COPYING})
12
 
# ----------------------------------------------------------------------
13
 
 
14
 
# whether to skip md5sum checks
15
 
SKIP_MD5SUM=0
16
 
 
17
 
. test-common-sh
18
 
 
19
 
set_ecasound_envvar
20
 
check_ecabin
21
 
 
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'.'`
23
 
 
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
28
 
 
29
 
echo "Test run succesful."
30
 
exit 0
 
 
b'\\ No newline at end of file'