1
0
Fork 0
mutter-performance-source/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"