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.
CI: QNX run tests in a nested VM (c-ares#942)
The QNX SDK has a method to generate an image and start it in a nested VM. Use this to upload the generated test cases and run them within the VM to validate the builds. Signed-off-by: Brad House (@bradh352)
- Loading branch information
Showing
2 changed files
with
61 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,35 @@ | ||
#!/bin/sh | ||
# Copyright (C) The c-ares project and its contributors | ||
# SPDX-License-Identifier: MIT | ||
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