Last active
June 26, 2023 13:12
-
-
Save laurentsenta/5292d8c5e663c1ceb10723cb8d3a6674 to your computer and use it in GitHub Desktop.
notes counting sharness / gateway conformance test ported
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ack 'Name:' ./tests | wc -l ☹ | |
# Output: 157 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
set -o pipefail | |
set -x | |
# An array of test identifiers | |
tests=("t0109" "t0111" "t0112" "t0113" "t0114" "t0115" "t0116" "t0122" "t0123" "t0117" "t0118" "t0124" "t0400") | |
# Iterate over the array | |
for test in "${tests[@]}" | |
do | |
echo "${test},$(grep -E 'test_expect|response_should_contain' ./${test}*.sh | wc -l)" >> out.csv | |
done | |
echo `awk -F',' '{total += $2} END {print total}' out.csv` | |
# ran in kubo master: | |
# result: 298 tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t0109 | 24 | |
---|---|---|
t0111 | 0 | |
t0112 | 21 | |
t0113 | 3 | |
t0114 | 101 | |
t0115 | 24 | |
t0116 | 50 | |
t0122 | 11 | |
t0123 | 41 | |
t0117 | 13 | |
t0118 | 0 | |
t0124 | 7 | |
t0400 | 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(some test cases are empty because the files have been completely ported to gway conformance)