tests.sh revision b7b76d6b855cd4c1152c26d34fb61af05f965c5e
#
# Copyright (C) 2013, 2016, 2017 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: tests.sh,v 1.7 2011/11/06 23:46:40 tbox Exp $
status=0
n=0
n=`expr $n + 1`
echo "I:test with RT, single zone (+rec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with RT, two zones (+rec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with NAPTR, single zone (+rec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with NAPTR, two zones (+rec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with LP (+rec) ($n)"
ret=0
no)
;;
yes)
;;
;;
;;
esac
fi
n=`expr $n + 1`
echo "I:test with NID (+rec) ($n)"
ret=0
# change && to || when we support NID additional processing
else
fi
fi
n=`expr $n + 1`
echo "I:test with NID + LP (+rec) ($n)"
ret=0
# change && to || when we support NID additional processing
else
fi
fi
n=`expr $n + 1`
echo "I:test with RT, single zone (+norec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with RT, two zones (+norec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with NAPTR, single zone (+norec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with NAPTR, two zones (+norec) ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:test with LP (+norec) ($n)"
ret=0
no)
;;
yes)
;;
;;
;;
esac
fi
n=`expr $n + 1`
echo "I:test with NID (+norec) ($n)"
ret=0
# change && to || when we support NID additional processing
else
fi
fi
n=`expr $n + 1`
echo "I:test with NID + LP (+norec) ($n)"
ret=0
# change && to || when we support NID additional processing
else
fi
fi
}
echo "I:testing with 'minimal-responses yes;'"
echo "I:reconfiguring server"
sleep 2
echo "I:testing with 'minimal-responses no;'"
n=`expr $n + 1`
echo "I:testing with 'minimal-any no;' ($n)"
ret=0
fi
echo "I:reconfiguring server"
sleep 2
n=`expr $n + 1`
echo "I:testing with 'minimal-any yes;' over UDP ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:testing with 'minimal-any yes;' over TCP ($n)"
ret=0
fi
n=`expr $n + 1`
echo "I:testing with 'minimal-any yes;' over UDP ($n)"
ret=0
fi
echo "I:testing with 'minimal-responses no-auth;'"
echo "I:reconfiguring server"
sleep 2
echo "I:testing with 'minimal-responses no-auth-recursive;'"
n=`expr $n + 1`
echo "I:testing returning TLSA records with MX query ($n)"
ret=0
grep "_25\._tcp\.mail\.mx\.example\..*TLSA.3 0 1 5B30F9602297D558EB719162C225088184FAA32CA45E1ED15DE58A21 D9FCE383" dig.out.$n > /dev/null || ret=1
fi
n=`expr $n + 1`
echo "I:testing returning TLSA records with SRV query ($n)"
ret=0
grep "_xmpp-client\._tcp\.srv\.example\..*SRV.1 0 5222 server\.srv\.example" dig.out.$n > /dev/null || ret=1
grep "_5222\._tcp\.server\.srv\.example\..*TLSA.3 0 1 5B30F9602297D558EB719162C225088184FAA32CA45E1ED15DE58A21 D9FCE383" dig.out.$n > /dev/null || ret=1
fi
echo "I:reconfiguring server: minimal-responses no"
sleep 2
echo "I:testing NS handling in ANY responses (authoritative)"
n=`expr $n + 1`
ret=0
fi
echo "I:testing NS handling in ANY responses (recursive)"
n=`expr $n + 1`
ret=0
fi
echo "I:exit status: $status"