mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-17 03:10:38 +00:00
1. Install missing test files 2. Enable network access by setting a nameserver in resolv.conf because some tests require this 3. One test tries to ping Google through IPv6 - this test requires ipv6 DISTRO_FEATURE. In case ipv6 is not enabled, skip this test from the run-ptest script. NB: the last mentioned test to work also requires IPv6 support from your ISP. My ISP is IPv4-only, and I couldn't try it out. The above comes from my reading of the testcode. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 lines
379 B
Bash
12 lines
379 B
Bash
#!/bin/sh
|
|
|
|
if ! nslookup example.com; then
|
|
mv /etc/resolv.conf /etc/resolv.conf.bak
|
|
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
|
trap "mv /etc/resolv.conf.bak /etc/resolv.conf" INT EXIT
|
|
fi
|
|
|
|
python3 UTscapy.py -t regression.uts -f text -l -C \
|
|
-o @PTEST_PATH@/scapy_ptest_$(date +%Y%m%d-%H%M%S).log \
|
|
2>&1 | sed -e 's/^passed None/PASS:/' -e 's/^failed None/FAIL:/'
|