]> git.ipfire.org Git - people/ms/network.git/blame - test/functions/ip/ip_protocol_is_supported
Make "make distcheck" happy and allow builddir != srcdir
[people/ms/network.git] / test / functions / ip / ip_protocol_is_supported
CommitLineData
89deda70
JS
1#!/bin/bash
2
8744a476 3. ${functions}
89deda70
JS
4
5. ${testdir}/constants.sh
6
7failed=0
8
9for 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
16done
17
18for 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
25done
26
27exit ${failed}