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

« back to all changes in this revision

Viewing changes to manual-tests/test-audioselect.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:20080706-3
4
 
#
5
 
# Script to generate and test audio selecting.
6
 
# The output files need to be verified manually.
7
 
#
8
 
# ----------------------------------------------------------------------
9
 
# File: ecasound/manual-tests/test-klg.sh
10
 
# License: GPL (see ecasound/{AUTHORS,COPYING})
11
 
# ----------------------------------------------------------------------
12
 
 
13
 
 
14
 
ECASOUND=../ecasound/ecasound_debug
15
 
 
16
 
. test-common-sh
17
 
 
18
 
check_ecabin
19
 
 
20
 
set -x
21
 
 
22
 
# generate source file
23
 
$ECASOUND -q -f:16,1,44100 -i tone,sine,880,0 -o src44100.wav -t:10 || error_exit
24
 
ln -s src44100.wav src44100.foobar
25
 
 
26
 
# perform test 1
27
 
set -x
28
 
$ECASOUND -q -f:16,1,44100 -i select,1,22000sa,src44100.wav -o as-dst22000sa.wav -x || error_exit
29
 
set +x
30
 
samples=`sndfile-info as-dst22000sa.wav |grep Frames |cut -d ':' -f2`
31
 
if [ $samples != "22000" ] ; then error_exit ; fi
32
 
check_md5sum as-dst22000sa.wav 6074b14f616a40cb1c7c74d305719c47
33
 
 
34
 
# perform test 2
35
 
set -x
36
 
$ECASOUND -q -f:16,1,88200 -i select,1.9,33000sa,resample,44100,src44100.wav -o as-dst33000sa.wav -x || error_exit
37
 
set +x
38
 
samples=`sndfile-info as-dst33000sa.wav |grep Frames |cut -d ':' -f2`
39
 
if [ $samples != "33000" ] ; then error_exit ; fi
40
 
check_md5sum as-dst33000sa.wav 6118d58a9149a55f0392684b4c0fec81
41
 
 
42
 
# perform test 3
43
 
set -x
44
 
$ECASOUND -q -f:16,1,44100 -i select,40000sa,55000sa,typeselect,.wav,src44100.foobar -o as-dst55000sa.wav -x || error_exit
45
 
set +x
46
 
samples=`sndfile-info as-dst55000sa.wav |grep Frames |cut -d ':' -f2`
47
 
if [ $samples != "55000" ] ; then error_exit ; fi
48
 
 
49
 
check_md5sum as-dst55000sa.wav 7ee71a96d9bfee811e61e11ade0523dd
50
 
# cur: 7ee71a96d9bfee811e61e11ade0523dd, size 110044
51
 
# prev-1: 0d792fe459a75e0e69e64c530d682fb3, size <unknown>
52
 
 
53
 
echo "Test run succesful (no manual verification needed)."
54
 
echo "Run './clean.sh' to remove created audio files."
55
 
 
56
 
exit 0