diff options
| -rw-r--r-- | meta-networking/recipes-filter/nftables/nftables/run-ptest | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta-networking/recipes-filter/nftables/nftables/run-ptest b/meta-networking/recipes-filter/nftables/nftables/run-ptest index 32ddf9f455..55e801f67c 100644 --- a/meta-networking/recipes-filter/nftables/nftables/run-ptest +++ b/meta-networking/recipes-filter/nftables/nftables/run-ptest | |||
| @@ -5,14 +5,18 @@ cd ${NFTABLESLIB}/ptest || exit 1 | |||
| 5 | 5 | ||
| 6 | LOG="${NFTABLESLIB}/ptest/nftables_ptest_$(date +%Y%m%d-%H%M%S).log" | 6 | LOG="${NFTABLESLIB}/ptest/nftables_ptest_$(date +%Y%m%d-%H%M%S).log" |
| 7 | NFT=nft | 7 | NFT=nft |
| 8 | tests/shell/run-tests.sh -v | sed -E '/I: \[OK\]/ s/^/PASS: / ; /W: \[(CHK DUMP|VALGRIND|TAINTED|DUMP FAIL|FAILED)\]/ s/^/FAIL: /' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | tee -a "${LOG}" | 8 | tests/shell/run-tests.sh -v | sed -E '/I: \[OK\]/ s/^/PASS: / ; /W: \[(CHK DUMP|VALGRIND|TAINTED|DUMP FAIL|FAILED)\]/ s/^/FAIL: / ; /I: \[SKIPPED\]/ s/^/SKIP: /' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | tee -a "${LOG}" |
| 9 | 9 | ||
| 10 | passed=$(grep -c PASS: "${LOG}") | 10 | passed=$(grep -c PASS: "${LOG}") |
| 11 | failed=$(grep -c FAIL: "${LOG}") | 11 | failed=$(grep -c FAIL: "${LOG}") |
| 12 | all=$((passed + failed)) | 12 | skiped=$(grep -c SKIP: "${LOG}") |
| 13 | |||
| 14 | all=$((passed + failed + skiped)) | ||
| 13 | 15 | ||
| 14 | ( echo "=== Test Summary ===" | 16 | ( echo "=== Test Summary ===" |
| 15 | echo "TOTAL: ${all}" | 17 | echo "TOTAL: ${all}" |
| 16 | echo "PASSED: ${passed}" | 18 | echo "PASSED: ${passed}" |
| 17 | echo "FAILED: ${failed}" | 19 | echo "FAILED: ${failed}" |
| 20 | echo "SKIPED: ${skiped}" | ||
| 21 | echo "====================" | ||
| 18 | ) | tee -a "${LOG}" | 22 | ) | tee -a "${LOG}" |
