File: match-test.sh

package info (click to toggle)
celt 0.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,084 kB
  • ctags: 1,441
  • sloc: ansic: 12,780; sh: 9,905; makefile: 124
file content (30 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

#outfile=`mktemp`
#if [ $? != 0 ]; then
#   echo "count not create temp output file"
#   exit 0
#fi
outfile=/dev/null

if [ -f mono_test_file.sw ]; then
   echo -n "mono test... "
   ./testcelt 44100 1 256 32 mono_test_file.sw $outfile
   if [ $? != 0 ]; then
      exit 1
   fi
else
   echo "no mono test file"
fi

if [ -f stereo_test_file.sw ]; then
   echo -n "stereo test... "
   ./testcelt 44100 2 256 92 stereo_test_file.sw $outfile
   if [ $? != 0 ]; then
      exit 1
   fi
else
   echo "no stereo test file"
fi

exit 0