forked from c-ares/c-ares
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
echo " * Extracting tests..." | ||
tar -C /system/lib/ -xvf gtest.tar | ||
tar -xvf cares-bin.tar | ||
tar -xvf cares-lib.tar | ||
|
||
echo " * Running Tests" | ||
|
||
echo " * adig test" | ||
./adig www.google.com | ||
|
||
echo "" | ||
echo " * ahost test" | ||
./ahost www.google.com | ||
|
||
echo "" | ||
echo " * arestest suite" | ||
./arestest www.google.com --gtest_filter="-*LiveSearchTXT*:*LiveSearchANY*:*ServiceName*" | ||
echo "" | ||
|
||
nsip=`grep ^nameserver /etc/resolv.conf | head -n 1 | cut -d ' ' -f 2` | ||
echo " * Changing DNS Configuration to use confstr(resolve, ${nsip}) and rerunning adig and ahost" | ||
setconf resolve nameserver_${nsip} | ||
rm -f /etc/resolv.conf | ||
|
||
echo "" | ||
echo " * adig test" | ||
./adig www.google.com | ||
|
||
echo " * ahost test" | ||
./ahost www.google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters