Add 2 autopkgtests
Steev Klimaszewski
1 year, 6 months ago
0 | 0 |
Test-Command: bing-ip2hosts -V
|
1 | 1 |
Restrictions: superficial
|
|
2 |
|
|
3 |
Tests: kali-website-by-ip, kali-website-by-domain
|
|
4 |
Restrictions: needs-internet, allow-stderr
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
# Kali website IP
|
|
3 |
TERM=linux bing-ip2hosts -o $AUTOPKGTEST_TMP/output www.kali.org
|
|
4 |
|
|
5 |
echo "bing-ip2hosts output:"
|
|
6 |
cat $AUTOPKGTEST_TMP/output
|
|
7 |
if ! grep -q "www.kali.org" $AUTOPKGTEST_TMP/output; then
|
|
8 |
echo "ERROR: missing kali.org from output"
|
|
9 |
exit 1
|
|
10 |
fi
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
# Kali website IP
|
|
3 |
TERM=linux bing-ip2hosts -o $AUTOPKGTEST_TMP/output 50.116.58.136
|
|
4 |
|
|
5 |
echo "bing-ip2hosts output:"
|
|
6 |
cat $AUTOPKGTEST_TMP/output
|
|
7 |
if ! grep -q "www.kali.org" $AUTOPKGTEST_TMP/output; then
|
|
8 |
echo "ERROR: missing kali.org from output"
|
|
9 |
rm $AUTOPKGTEST_TMP/output
|
|
10 |
exit 1
|
|
11 |
fi
|