File: do-regress

package info (click to toggle)
wp2x 2.5-mhi-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 504 kB
  • ctags: 311
  • sloc: ansic: 2,061; sh: 339; makefile: 150; perl: 70
file content (21 lines) | stat: -rwxr-xr-x 373 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
#!/bin/sh

for input in ${INPUTS}
do 
  for cfg in ${CFGFILES}
  do
    basecfg=`basename $cfg .cfg`;
    basein=`basename $input .wp`;
    echo -n Testing input: $input with cfg: $cfg ' -> ' 
    if ( ../src/wp2x ../cfg/$cfg inputs/$input 2>/dev/null | diff outputs/$basein.$basecfg - ) ; \
    then 
      echo passed;
    else
      echo failed;
    fi
  done
done