#! /bin/sh -e
MAJORVER=`echo "@PARI_VERSION@" | cut -d. -f1`
MINORVER=`echo "@PARI_VERSION@" | cut -d. -f2`
echo Running test traditional
scripts/dotest test
if test $MAJORVER -gt 2 || test $MINORVER -gt 4; then
  echo Running test closure
  scripts/dotest test2
fi
if test $MAJORVER -gt 2 || test $MINORVER -gt 6; then
  echo Running test ranges
  scripts/dotest test3
fi
if test $MAJORVER -gt 2 || test $MINORVER -gt 9; then
  echo Running test iterators
  scripts/dotest test4
fi
