diff options
author | svu <svu> | 2004-12-22 22:16:19 +0000 |
---|---|---|
committer | svu <svu> | 2004-12-22 22:16:19 +0000 |
commit | 9aa94144f26fe8896b7475ba12ff2381fd900c7c (patch) | |
tree | dca83bd43f1f18a05d6a528ba4a4e8a7bd00c406 /tests | |
parent | 84a78763e8cae0c9160f5392c8621c7dd95a749e (diff) |
testing the group names against layout names
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.cvsignore | 1 | ||||
-rwxr-xr-x | tests/genLists4Comparizon.sh | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/.cvsignore b/tests/.cvsignore new file mode 100644 index 00000000..a3f0b1b7 --- /dev/null +++ b/tests/.cvsignore @@ -0,0 +1 @@ +*.lst diff --git a/tests/genLists4Comparizon.sh b/tests/genLists4Comparizon.sh new file mode 100755 index 00000000..62f1718a --- /dev/null +++ b/tests/genLists4Comparizon.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +ROOT="`dirname $0`/.." +F1=reg2ll.lst +F2=gn2ll.lst + +xsltproc $ROOT/xslt/reg2ll.xsl $ROOT/rules/base.xml | sort | uniq > $F1 + +for i in $ROOT/symbols/*; do + if [ -f $i ]; then + id="`basename $i`" + gawk 'BEGIN{FS="\""}/^[[:space:]]*name\[Group1\][[:space:]]*=/{print $2;}' $i | while read name; do + echo "$id:\"$name\"" + done + fi +done | sort | uniq > $F2 + +diff $F1 $F2 |