==== run-netstat6 ==== # check route distribution of IPv6 packets awk 'BEGIN{ mpath = used = uses = max = 0; } /^fc00::19:0:0 /{ if ($3 == "UGHSBP") mpath++; if ($5 > 0) used++; if ($5 > max) max = $5; uses += $5; } END{ print "mpath "mpath", uses "uses", max "max", used "used; if (mpath != 100) { print "not 100 mpath: " mpath; exit 1; } if (uses != 100) { print "not 100 uses: " uses; exit 1; } if (max > 30) { print "max more than 30: " max; exit 1; } if (used < 50) { print "used less than 50: " used; exit 1; } }' netstat6.log mpath 100, uses 100, max 100, used 1 max more than 30: 100 *** Error 1 in . (Makefile:163 'run-netstat6') EXPECTED_FAIL