tests.sh revision c0c4512020c0a4a9e5b087cb8cad1cd68fb3f52e
#
# Copyright (C) 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
status=0
n=0
DIGOPTS="+tcp +short -p 5300 @10.53.0.2"
n=`expr $n + 1`
echo "I:checking GeoIP country database by code ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP country database by three-letter code ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP country database by name ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP region code, no specified database ($n)"
ret=0
lret=0
# skipping 2 on purpose here; it has the same region code as 1
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP region database by region name and country code ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP city database by city name ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP isp database ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP org database ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP asnum database ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP domain database ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP netspeed database ($n)"
ret=0
lret=0
done
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP blackhole ACL ($n)"
ret=0
echo "I:reloading server"
sleep 3
n=`expr $n + 1`
echo "I:checking GeoIP country database by code (using nested ACLs) ($n)"
ret=0
lret=0
done
echo "I:exit status: $status"
exit $status