# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-# $Id: tests.sh,v 1.8.44.1 2011/12/23 00:42:40 marka Exp $
+# $Id: tests.sh,v 1.8.44.2 2011/12/23 01:08:14 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
match=0
for j in 1 2 3 4
do
- eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
+ if $test_fixed; then
+ cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
+ eval "match$j=1 match=1";
+ }
+ else
+ cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
+ eval "match$j=1 match=1";
+ }
+ fi
if [ $match -eq 1 ]; then break; fi
done
- if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
+ if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; cat dig.out.cyclic; fi
done
match=0
for i in 1 2 3 4
match=0
for j in 1 2 3 4
do
- eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
+ if $test_fixed; then
+ cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
+ eval "match$j=1 match=1";
+ }
+ else
+ cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
+ eval "match$j=1 match=1";
+ }
+ fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
match=0
for j in 1 2 3 4
do
- eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
+ if $test_fixed; then
+ cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
+ eval "match$j=1 match=1";
+ }
+ else
+ cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
+ eval "match$j=1 match=1";
+ }
+ fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
match=0
for j in 1 2 3 4
do
- eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
+ if $test_fixed; then
+ cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
+ eval "match$j=1 match=1";
+ }
+ else
+ cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
+ eval "match$j=1 match=1";
+ }
+ fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi