From 9aa94144f26fe8896b7475ba12ff2381fd900c7c Mon Sep 17 00:00:00 2001 From: svu Date: Wed, 22 Dec 2004 22:16:19 +0000 Subject: testing the group names against layout names --- tests/.cvsignore | 1 + tests/genLists4Comparizon.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/.cvsignore create mode 100755 tests/genLists4Comparizon.sh (limited to 'tests') diff --git a/tests/.cvsignore b/tests/.cvsignore new file mode 100644 index 0000000..a3f0b1b --- /dev/null +++ b/tests/.cvsignore @@ -0,0 +1 @@ +*.lst diff --git a/tests/genLists4Comparizon.sh b/tests/genLists4Comparizon.sh new file mode 100755 index 0000000..62f1718 --- /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 -- cgit v1.2.1