#!/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 ( wp2x.sh $cfg ../inputs/$input 2>/dev/null | diff ../outputs/$basein.$basecfg - ) ; \
    then 
      echo passed;
    else
      echo failed;
    fi
  done
done 
