File: gen-test.sh

package info (click to toggle)
audiowmark 0.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,168 kB
  • sloc: cpp: 10,571; sh: 1,867; makefile: 107; python: 34
file content (14 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

mkdir -p test
if [ ! -z "$(ls test)"  ]; then
  echo test dir not empty
  exit 1
fi

seq=1
cat test_list | while read f
do
  audiowmark gentest "$f" test/T$(printf "%02d__%s" $seq $(echo $f | sed 's, ,_,g;s,.*/,,g')).wav || exit 1
  ((seq++))
done