meta-virtualization/recipes-containers/netavark/files/run-ptest
Mingli Yu 7d0768c428 netavark: Improve the ptest output
* The previous ptest result show as ✓ or ✗ , improve the result to
PASS or FAIL.

* Skip some cases related to sit0 device(sit kernel module) and
firewalld.

* Add nftables to RDEPENDS for netavark-ptest as 250-bridge-nftables.bats
needs it.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-07-10 15:59:26 +00:00

534 B

#!/bin/bash

shopt -s extglob

Skip the plugin tests because those example plugins are built only while

running cargo test and for this to work as a ptest they would need to be cross

compiled and installed as part of the ptest.

for i in ls test; do if [ $i == "200-bridge-firewalld.bats" ] || [ $i == "500-plugin.bats" ] ; then continue fi [ ${i: -4 -1} == ".bats" ] && NETAVARK=/usr/libexec/podman/netavark bats -t test/$i | sed -e '/^ok/ s/^ok/PASS: /g' | sed -e '/^not ok/ s/^not ok/FAIL: /g' done