summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/nft-only/0010-native-delinearize_0
blob: 7859e76c9dd514c2a8e186994af0ed521b0ab089 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

[[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
nft -v >/dev/null || exit 0

set -e

unshare -n bash -c "nft -f $(dirname $0)/0010-nft-native.txt;
  diff -u -Z $(dirname $0)/0010-iptables-nft-save.txt <($XT_MULTI iptables-save | grep -v '^#')"