#!/bin/sh

SRCDIR=$(pwd)/../src
cd `dirname $0`
FILE=`basename $0`
bash $SRCDIR/org/webdsl/dsl/project/webdsl test $FILE > /dev/null 2> $FILE.out
grep "$(cat $FILE.app | head -n 1 | sed 's/^[/]*//')" $FILE.out > /dev/null

result=$?
if test 0 -ne $result; then
  cat $FILE.out
  rm -f $FILE.out
  exit 1
else
  rm -f $FILE.out
  exit 0
fi

#!/bin/sh

SRCDIR=$(pwd)/../src
cd `dirname $0`
FILE=`basename $0`
bash $SRCDIR/org/webdsl/dsl/project/webdsl cleanall > /dev/null 2> /dev/null
bash $SRCDIR/org/webdsl/dsl/project/webdsl test $FILE > /dev/null 2> $FILE.out
grep "$(cat $FILE.app | head -n 1 | sed 's/^[/]*//')" $FILE.out > /dev/null

result=$?
if test 0 -ne $result; then
  cat $FILE.out
  rm -f $FILE.out
  exit 1
else
  rm -f $FILE.out
  exit 0
fi

Clean before testing, otherwise things will FAIL.
Clean before testing, otherwise things will FAIL.

svn path=/webdsls/trunk/; revision=1815
