source: to-imperative/trunk/samples/check.sh @ 2049

Last change on this file since 2049 was 1008, checked in by pooh, 17 years ago
  • Changed to provide non-gnu and older gnu sed compatibility.
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 228 bytes
Line 
1#!/bin/sh
2
3if [ -f "${1}.out" ] ; then
4  ./${1} 2>&1 | sed -e '/^Time elapsed/q' | grep -v "^Time elapsed" | diff -u "${1}.out" - >/dev/null 2>&1
5  if [ ${?} = 0 ] ; then
6    echo PASS : ${1}
7  else
8    echo FAIL : ${1}
9  fi
10fi
Note: See TracBrowser for help on using the repository browser.