1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#!/bin/bash
#test/runtests $*
#if [ $? != 0 ]; then exit 1; fi
if [ "$1" = "_few" ]; then
testLevel="few";
shift;
else
testLevel="normal"
fi
TIMEFORMAT=$' (%2lR real)'
pivotSplits="minimum median maximum gcd indep"
pivotActions="hilbert_slice"
labelSplits="maxlabel varlabel minlabel $pivotSplits"
labelActions="optimize irrdecom assoprimes alexdual"
frobSplits="frob $labelSplits"
frobActions="frob"
bigattiSplits="median mostNGPure mostNGGcd mostNGTight typicalPure \
typicalGcd typicalTight typicalNGPure typicalNGGcd typicalNGTight \
someNGPure someNGGcd someNGTight"
bigattiActions="hilbert_bigatti"
params="$*"
testhelper=../testScripts/testhelper
paths="specialIdeals commonIdeals frob"
runTests () {
action="$1"; shift;
splits="$*";
echo "*** $action";
for split in $splits; do
echo -n " $split ";
for path in $paths; do
cd test/$path;
../testScripts/runtests $action $params -split $split;
if [ $? != 0 ]; then exit 1; fi
cd ../..;
if [ "$testLevel" = "few" ]; then
if [ "$action" != "frob" ]; then
break;
fi
fi
done
echo;
done
}
for action in $bigattiActions;
do
runTests "$action" $bigattiSplits
done
for action in $labelActions;
do
runTests "$action" $labelSplits
done
for action in $pivotActions;
do
runTests "$action" $pivotSplits
done
for action in $frobActions;
do
runTests "$action" $frobSplits
done
|