]> git.ipfire.org Git - network.git/blob - test/functions/ip/ip_protocol_is_supported
Make "make distcheck" happy and allow builddir != srcdir
[network.git] / test / functions / ip / ip_protocol_is_supported
1 #!/bin/bash
2
3 . ${functions}
4
5 . ${testdir}/constants.sh
6
7 failed=0
8
9 for proto in ${IP_TEST_SUPPORTED_PROTOCOLS[@]}; do
10 if ip_protocol_is_supported ${proto}; then
11 echo "OK: IP protocol ${proto} is supported"
12 else
13 echo "ERROR: IP protocol ${proto} is not supported"
14 failed=1
15 fi
16 done
17
18 for proto in ${IP_TEST_UNSUPPORTED_PROTOCOLS[@]}; do
19 if ! ip_protocol_is_supported ${proto}; then
20 echo "OK: IP protocol ${proto} is not supported"
21 else
22 echo "ERROR: IP protocol ${proto} is supported"
23 failed=1
24 fi
25 done
26
27 exit ${failed}