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
file=nonradical_radicalshape-no-square-qq
# source test/diff/diff_source.sh
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-p 3 -l 2 -t 1
if [ $? -gt 0 ]; then
exit 3
fi
#diff test/diff/$file.res output_files/$file.p3.res
if [ $? -gt 0 ]; then
exit 4
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-P 2 -l 2 -t 1 -c 0
if [ $? -ne 1 ]; then
exit 5
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-p 3 -l 2 -t 2
if [ $? -gt 0 ]; then
exit 23
fi
#diff test/diff/$file.res output_files/$file.p3.res
if [ $? -gt 0 ]; then
exit 24
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-P 2 -l 2 -t 2 -c 0
if [ $? -ne 1 ]; then
exit 25
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-p 3 -l 44 -t 1
if [ $? -gt 0 ]; then
exit 43
fi
#diff test/diff/$file.res output_files/$file.p3.res
if [ $? -gt 0 ]; then
exit 44
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-P 2 -l 44 -t 1 -c 0
if [ $? -ne 1 ]; then
exit 45
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-p 3 -l 44 -t 2
if [ $? -gt 0 ]; then
exit 63
fi
#diff test/diff/$file.res output_files/$file.p3.res
if [ $? -gt 0 ]; then
exit 64
fi
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \
-P 2 -l 44 -t 2 -c 0
if [ $? -ne 1 ]; then
exit 65
fi
rm test/diff/$file.res
|