mutter/cogl/tests/unit/meson/find-unit-tests.sh

10 lines
195 B
Bash
Raw Normal View History

#!/bin/sh
inputdir="$1"
outputfile="$2"
echo > "$outputfile"
grep -h -r --include \*.c UNIT_TEST "$inputdir" | \
sed -n -e 's/^UNIT_TEST *( *\([a-zA-Z0-9_]\{1,\}\).*/\1/p' > "$outputfile"