#!/bin/bash
#
# run the indicated test with the indicated targets
#
# $1       = fast, full, or name of one test
# $2       = test name
# $3       = all or none
# $4 .. $7 = jal command line arguments
#

if [ $3 = all ]; then
   test3 $1 $2 16f84_4 $4 $5 $6 $7
fi
if [ $3 = 8 ]; then
   test3 $1 $2 16f84_4 $4 $5 $6 $7
fi
if [ x$1 = xfast ]; then
   if [ -f stop.flg ]; then
      exit
  fi
fi

if [ $3 = all ]; then
   test3 $1 $2 sx18_50 $4 $5 $6 $7
fi
if [ $3 = 8 ]; then
   test3 $1 $2 sx18_50 $4 $5 $6 $7
fi
if [ x$1 = xfast ]; then
   if [ -f stop.flg ]; then
      exit
   fi
fi

if [ $3 = all ]; then
   test3 $1 $2 f877_10 $4 $5 $6 $7
fi
if [ $3 = 8 ]; then
   test3 $1 $2 f877_10 $4 $5 $6 $7
fi
if [ x$1 = xfast ]; then
   if [ -f stop.flg ]; then
      exit
   fi
fi

if [ $3 = all ]; then
   test3 $1 $2 12c509a_int_4_int_mclr $4 $5 $6 $7
fi
if [ x$1 = xfast ]; then
   if [ -f stop.flg ]; then
      exit
   fi
fi

if [ $3 = none ]; then
   test3 $1 $2 implicit $4 $5 $6 $7
fi
if [ x$1 = xfast ]; then
   if [ -f stop.flg ]; then
      exit
   fi
fi

