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

« back to all changes in this revision

Viewing changes to manual-tests/test-klg.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:20080708-3
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-klg.sh
11
 
# License: GPL (see ecasound/{AUTHORS,COPYING})
12
 
# ----------------------------------------------------------------------
13
 
 
14
 
 
15
 
ECASOUND=../ecasound/ecasound_debug
16
 
#ECASOUND=ecasound
17
 
 
18
 
# whether to skip md5sum checks
19
 
SKIP_MD5SUM=0
20
 
 
21
 
. test-common-sh
22
 
 
23
 
check_ecabin
24
 
 
25
 
set -x
26
 
 
27
 
# control amplify with klg
28
 
#   0.0  -> 5.5:   0%   -> 100%
29
 
#   5.5  -> 10.5:  100% -> 20%
30
 
#   10.5 -> 20.0:  20%  -> 80%
31
 
#   20.0 -> 30.0:  80%  -> 10%
32
 
#
33
 
$ECASOUND -q -f:16,1,44100 -i tone,sine,440,30 -o klg-dst.wav -ea:100 -klg:1,0,100,5,0,0,5.5,1,10.5,0.2,20.0,0.8,30,0.1 -x  || error_exit
34
 
check_1dbpeak_count klg-dst.wav 5753
35
 
check_filesize klg-dst.wav 2646042
36
 
# cur...: e7c1a4d352423eb9c40f184274546c8e, size 2646042
37
 
# prev-2: e4a87025d0205016cb3c9f7e6b5aa63f, size 2646042
38
 
# prev-1: e7c1a4d352423eb9c40f184274546c8e, size <unknown>
39
 
 
40
 
echo "Test run succesful."
41
 
exit 0