Skip to content

Instantly share code, notes, and snippets.

@laurentsenta
Last active June 26, 2023 13:12
Show Gist options
  • Save laurentsenta/5292d8c5e663c1ceb10723cb8d3a6674 to your computer and use it in GitHub Desktop.
Save laurentsenta/5292d8c5e663c1ceb10723cb8d3a6674 to your computer and use it in GitHub Desktop.
notes counting sharness / gateway conformance test ported
ack 'Name:' ./tests | wc -l ☹
# Output: 157
#!/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
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
@laurentsenta
Copy link
Author

laurentsenta commented Jun 26, 2023

(some test cases are empty because the files have been completely ported to gway conformance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment