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=bug-2nd-prime-bad
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 2 -t 1
if [ $? -gt 0 ]; then
exit 1
fi
diff test/diff/$file.res output_files/$file.res
if [ $? -gt 0 ]; then
exit 2
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 2 -t 2
if [ $? -gt 0 ]; then
exit 21
fi
diff test/diff/$file.res output_files/$file.res
if [ $? -gt 0 ]; then
exit 22
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 44 -t 1
if [ $? -gt 0 ]; then
exit 41
fi
diff test/diff/$file.res output_files/$file.res
if [ $? -gt 0 ]; then
exit 42
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-g 2 -l 44 -t 2
if [ $? -gt 0 ]; then
exit 61
fi
diff test/diff/$file.res output_files/$file.res
if [ $? -gt 0 ]; then
exit 62
fi
rm test/diff/$file.res
|