diff options
Diffstat (limited to 'recipes-containers/netavark/files/run-ptest')
| -rw-r--r-- | recipes-containers/netavark/files/run-ptest | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-containers/netavark/files/run-ptest b/recipes-containers/netavark/files/run-ptest index 7e017ae2..59238d37 100644 --- a/recipes-containers/netavark/files/run-ptest +++ b/recipes-containers/netavark/files/run-ptest | |||
| @@ -5,4 +5,10 @@ shopt -s extglob | |||
| 5 | # Skip the plugin tests because those example plugins are built only while | 5 | # Skip the plugin tests because those example plugins are built only while |
| 6 | # running cargo test and for this to work as a ptest they would need to be cross | 6 | # running cargo test and for this to work as a ptest they would need to be cross |
| 7 | # compiled and installed as part of the ptest. | 7 | # compiled and installed as part of the ptest. |
| 8 | NETAVARK=/usr/libexec/podman/netavark bats test/!(*-plugin.bats) | 8 | for i in `ls test`; do |
| 9 | if [ $i == "200-bridge-firewalld.bats" ] || [ $i == "500-plugin.bats" ] ; then | ||
| 10 | continue | ||
| 11 | fi | ||
| 12 | [ ${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' | ||
| 13 | done | ||
| 14 | |||
