File: check.sh

package info (click to toggle)
tk707 0.7.21-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 1,972 kB
  • ctags: 711
  • sloc: ansic: 10,986; tcl: 3,079; sh: 556; makefile: 182; lex: 147
file content (31 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (6)
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
31
#!/bin/sh
if test x"$MIDIDUMP" = x""; then
    echo "      mididump: program not found -- test skiped" 
    exit 0
fi
status=0

L="binaire-tk triolet-tk tst_scale"

have_not_found=no
for x in $L; do
  if test -f $x.mid; then
    echo "$MIDIDUMP $x.mid | diff $x.valid-dump -"
    $MIDIDUMP $x.mid | diff $x.valid-dump -
    if test $? = 0; then
	echo "$x.mid: ok"
    else
	echo "$x.mid: *NO*"
	status=1
    fi
  else
    echo "$x.mid: file not found -- test skiped"
    have_not_found=yes
  fi
done

if test $have_not_found = yes; then
    echo "HINT: you should use tk707 midi output for creating missing files." 
fi
exit $status