winetest: Store the test name as the resource name instead of in a separate string...
[wine] / programs / winetest / maketest
1 #!/bin/sh
2
3 TOPSRCDIR="$1"
4 shift
5
6 echo "/* Automatically generated -- do not edit! */"
7 echo "#include \"resource.h\""
8 echo "STRINGTABLE {"
9
10 i=0
11 cd $TOPSRCDIR
12 if [ -d .git ]
13 then
14     git-ls-files -c -s --abbrev=10 -- "dlls/*/tests/*.c" |\
15         sed -ne "s|^[0-7]* \([0-9a-f]*\) [0-9]  \(.*\)$|\2:\1|p"
16 else
17     for dir in dlls/*/tests; do
18         sed -ne "s|^/\([^.]*.c\)/\([^/]*\).*|$dir/\1:\2|p" $dir/CVS/Entries 2>/dev/null
19     done
20 fi |\
21 while read line; do
22     echo "REV_INFO+$i \"$line\""
23     i=`expr $i + 1`
24 done
25
26 echo "}"
27
28 for test
29 do
30     echo "$test TESTRES \"$test\""
31 done