poco: enable dns in ptest

NetSSL tests connect to secure.appinf.com and thus need to resolve DNS.
1 failure and 23 errors are fixed by this change making
NetSSL-testrunner to pass.

Such configuration is already used in oe-core oeqa maturin test.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Peter Marko
2025-09-05 00:11:33 +02:00
committed by Khem Raj
parent 462e63f5ea
commit 6b837f4c88
@@ -1,4 +1,12 @@
#!/bin/sh
# configure dns
if ! nslookup secure.appinf.com >/dev/null 2>&1; then
trap 'mv /etc/resolv.conf.backup /etc/resolv.conf' INT EXIT
mv /etc/resolv.conf /etc/resolv.conf.backup
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
fi
export POCO_BASE=/usr/lib/poco/ptest
export LD_LIBRARY_PATH=${POCO_BASE}/bin:${LD_LIBRARY_PATH}
i=0