1 # #-- dnscrypt_queries_chacha.test --#
2 # source the master var file when it's there
3 [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
4 # use .tpkg.var.test for in test variable passing
5 [ -f .tpkg.var.test ] && source .tpkg.var.test
9 # Check if we can run the test.
15 echo "> do queries ${opt}"
16 dig @127.0.0.1 ${opt} -p $PROXY_PORT www1.example.com. >outfile1 &
18 dig @127.0.0.1 ${opt} -p $PROXY_PORT www2.example.com. >outfile2 &
20 dig @127.0.0.1 ${opt} -p $PROXY_PORT www3.example.com. >outfile3 &
22 dig @127.0.0.1 ${opt} -p $PROXY_PORT www4.example.com. >outfile4 &
24 dig @127.0.0.1 ${opt} -p $PROXY_PORT www5.example.com. >outfile5 &
26 dig @127.0.0.1 ${opt} -p $PROXY_PORT www6.example.com. >outfile6 &
52 echo "> check for ID bit collisions"
53 grep "pending reply" unbound.log > ids
54 numsend=`cat ids | wc -l`
55 cat ids | awk '{print $8};' | sort -u > ids2
56 numuniq=`cat ids2 | wc -l`
57 if test $numuniq -ne $numsend; then
58 echo "got a ID number clash. could not do test, sorry"
62 echo "> check answers for queries"
63 if grep "10.20.30.40" outfile1; then
69 if grep "10.20.30.50" outfile2; then
75 if grep "10.20.30.60" outfile3; then
81 if grep "10.20.30.70" outfile4; then
87 if grep "10.20.30.80" outfile5; then
93 if grep "10.20.30.90" outfile6; then