Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show_tags.sh - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 986939e755d96cfc7f7629213a8aafb6e0d9b28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

if [ $# -ge 1 ]; then
    tags=$@
else
    tags=$(find tests -name '*test_*.sh' | xargs -i grep '^ *# *TAGS:' {} | sed 's/ *# *TAGS: *//' | tr ' ' '\n' | sort | uniq)
fi

for tag in $tags; do
    echo "#$tag"
    find tests -name '*test_*.sh' | xargs -i grep -l "^ *# *TAGS:.* $tag" {} | sed -e 's/ *# *TAGS: */ /' -e 's/^/ - /'
    echo
done