Code Search for Developers
 
 
  

checktest.sh from GreenSocs at Krugle


Show checktest.sh syntax highlighted

#! /bin/sh

LOGFILE=$1
GOLDENLOGFILE=$2
DIFFFILE="logfile.diff"
TMPFILE="logfile.grep"

if [ ! -f "$LOGFILE" ] || [ ! -f "$GOLDENLOGFILE" ] ; then
    echo "fail"
    exit;
fi
grep "^%%REG: " $LOGFILE >$TMPFILE
if [ ! -f $TMPFILE ] ; then
    echo "fail"
    exit;
fi
diff $TMPFILE $GOLDENLOGFILE >$DIFFFILE
rm $TMPFILE
if [ -s $DIFFFILE ] ; then
    echo "fail"
else
    echo "passed"
fi




See more files for this project here

GreenSocs

To develop SystemC infrustructure, basic IP, patches and add on library code for eventual standerdization.\r\nThe GreenSocs project is made up of a number of contributions (sub projects). Please visit www.greensocs.com for more information.

Project homepage: http://sourceforge.net/projects/greensocs
Programming language(s): C,C++,Java,Perl,XML
License: other

  Makefile
  README
  SConstruct
  checktest.sh
  data.h
  data_ext.h
  test.cc
  test_reg.cc