mirror of https://github.com/c-ares/c-ares.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
4 years ago
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
# Travis on MacOS uses CloudFlare's DNS (1.1.1.1/1.0.0.1) which rejects ANY requests
|
||
|
# Note res_ninit() and /etc/resolv.conf actually have different configs, bad Travis
|
||
|
[ -z "$TEST_FILTER" ] && export TEST_FILTER="--gtest_filter=-*LiveSearchANY*"
|
||
|
|
||
4 years ago
|
# No tests for ios as it is a cross-compile
|
||
4 years ago
|
if [ "$BUILD_TYPE" = "ios" -o "$BUILD_TYPE" = "ios-cmake" ] ; then
|
||
4 years ago
|
exit 0
|
||
4 years ago
|
fi
|
||
4 years ago
|
|
||
|
# Analyze tests don't need runtime, its static analysis
|
||
|
if [ "$BUILD_TYPE" = "analyze" ] ; then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
PWD=`pwd`
|
||
|
TESTDIR="${PWD}/test"
|
||
|
|
||
|
if [ "$BUILD_TYPE" = "cmake" -o "$BUILD_TYPE" = "valgrind" ] ; then
|
||
|
TOOLSBIN="${PWD}/cmakebld/bin"
|
||
|
TESTSBIN="${PWD}/cmakebld/bin"
|
||
|
else
|
||
|
TOOLSBIN="${PWD}/atoolsbld/src/tools"
|
||
|
TESTSBIN="${PWD}/atoolsbld/test"
|
||
|
fi
|
||
|
|
||
|
$TEST_WRAP "${TOOLSBIN}/adig" www.google.com
|
||
|
$TEST_WRAP "${TOOLSBIN}/acountry" www.google.com
|
||
|
$TEST_WRAP "${TOOLSBIN}/ahost" www.google.com
|
||
|
cd "${TESTSBIN}"
|
||
|
$TEST_WRAP ./arestest -4 -v $TEST_FILTER
|
||
4 years ago
|
./aresfuzz ${TESTDIR}/fuzzinput/*
|
||
|
./aresfuzzname ${TESTDIR}/fuzznames/*
|
||
4 years ago
|
./dnsdump "${TESTDIR}/fuzzinput/answer_a" "${TESTDIR}/fuzzinput/answer_aaaa"
|
||
|
cd "${PWD}"
|