File: test_convert.sh

package info (click to toggle)
rat 4.2.22-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,896 kB
  • ctags: 3,717
  • sloc: ansic: 36,542; tcl: 2,740; sh: 2,675; makefile: 295
file content (19 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

for c in 0 1 2; do
    for ichannels in 1 2; do
	for irate in 8000 16000 32000 48000; do
	    for ochannels in 1 2; do
		for orate in 8000 16000 32000 48000; do
		    echo "#Testing $c: $ichannels,$irate -> $ochannels,$orate" > /dev/stderr
		    ./test_convert -c $c \
			-ifmt channels=$ichannels,rate=$irate \
			-ofmt channels=$ochannels,rate=$orate
		    if [ $? != 0 ] ; then
			exit
		    fi
		done
	    done
	done
    done
done