hepmc - Rev 151

Subversion Repositories:
Rev:
#! /bin/sh
# @configure_input@
# you can compare testHepMCIteration.out to @srcdir@/testHepMCIteration.dat
# and testHepMCIterationExtended.out to @srcdir@/testHepMCIterationExtended.dat,
# but the particles within a vertex are printed in "random" order

./testHepMCIteration@EXEEXT@ >& testHepMCIteration.cout

OS=`uname`
case "$OS" in
CYGWIN*)
  #don't compare these on Windows (hopelessly different default output)
  cmd1=1
  ;;
Darwin*)
  # MacOSX fix
  cmd1=`sed 's/(-0,0)/(0,0)/g'  testHepMCIteration.dat  | \
        @DIFF_Q@ - @srcdir@/testHepMCIteration.dat`
  # dealing with different ordering - can't compare
  ;;
*)
  cmd1=`sed 's/(-0,0)/(0,0)/g'  testHepMCIteration.dat  | \
        @DIFF_Q@ - @srcdir@/testHepMCIteration.dat`
esac

if [ -n "$cmd1" ]
then
  echo $cmd1
  exit 1;
fi

exit 0;