1#!/usr/bin/env sh 2 3frobby=../../bin/frobby 4testhelper=../testScripts/testhelper 5test="$1" 6shift 7 8if [ "$1" = "_full" ]; 9then 10 shift; 11 12 # Check that -canon agrees with transform without -radical on. 13 $testhelper transform $test.radical $test.radical -canon 14 if [ $? != 0 ]; then exit 1; fi 15 16 # Check that radical is idempotent. 17 $testhelper transform $test.radical $test.radical $* -radical -canon 18 if [ $? != 0 ]; then exit 1; fi 19 20 # Check that radical is minimized. 21 $testhelper transform $test.radical $test.radical -minimize -canon 22 if [ $? != 0 ]; then exit 1; fi 23 24 # Check that radical of minimized is the same. 25 $testhelper transform $test.minimize $test.radical \ 26 $* -radical -canon -minimize 27 if [ $? != 0 ]; then exit 1; fi 28fi 29 30$testhelper transform $test.*test $test.radical $* -canon -radical -minimize 31