aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/files/run-ptest
blob: 9d3ec79042d06639cdb01c5b5c90a974e4268d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

ret_val=0

# Check if all the kernel modules are available
FIREWALLD_KERNEL_MODULES="@@FIREWALLD_KERNEL_MODULES@@"
for m in $FIREWALLD_KERNEL_MODULES; do
    if modprobe $m; then
        echo "PASS: loading $m"
    else
        echo "FAIL: loading $m"
        ret_val=1
    fi
done

# Run the test suite from firewalld
# Failing testsuites: 203 226 241 250 270 280 281 282 285 286
# Problem icmpv6 compared against ipv6-icmptype?
/usr/share/firewalld/testsuite/testsuite -C /tmp -A || ret_val=1

exit $ret_val