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
|
#!/bin/bash
file=groebner-g2
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 2 -t 1
if [ $? -gt 0 ]; then
exit 3
fi
diff test/diff/$file.res output_files/$file.g2.res
if [ $? -gt 0 ]; then
exit 4
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 2 -t 2
if [ $? -gt 0 ]; then
exit 23
fi
diff test/diff/$file.res output_files/$file.g2.res
if [ $? -gt 0 ]; then
exit 24
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 44 -t 1
if [ $? -gt 0 ]; then
exit 43
fi
diff test/diff/$file.res output_files/$file.g2.res
if [ $? -gt 0 ]; then
exit 44
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 44 -t 2
if [ $? -gt 0 ]; then
exit 63
fi
diff test/diff/$file.res output_files/$file.g2.res
if [ $? -gt 0 ]; then
exit 64
fi
rm test/diff/$file.res
|