diff options
author | Vishal Gupta <vishalgupta7972@gmail.com> | 2018-06-16 12:09:17 +0530 |
---|---|---|
committer | Vishal Gupta <vishalgupta7972@gmail.com> | 2018-06-16 12:09:17 +0530 |
commit | c538dc193d39be7df03615d4d4792ec4c1aedf97 (patch) | |
tree | f4bf1fc5f6ca8414315d1d31d18b8e06aac4bd1d /lib/Automake/Parser/test.sh | |
parent | acb396f294d1ef3b7c0a399d01b1388cd32be68d (diff) | |
download | automake-c538dc193d39be7df03615d4d4792ec4c1aedf97.tar.gz |
Added support for Conditional statement and Test files.
* automake.y : Updated to handle conditional statement and empty variable
* defination
* parser.pl : Updated to read from standard input and write to standard
* output. In debug mode, output on standard error stream.
* Converter.pl : Updated to handle empty grammar definitions.
* Tree.pm : Updated to handle conditional statements and write output to
* standard output
* Makefile : Added action test.
* test.sh : Read all text files in t directory and generates corresponding
* standard output
* Makefile : Added action test.
* t/*.txt : test files.
Diffstat (limited to 'lib/Automake/Parser/test.sh')
-rw-r--r-- | lib/Automake/Parser/test.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Automake/Parser/test.sh b/lib/Automake/Parser/test.sh new file mode 100644 index 000000000..f20e0097b --- /dev/null +++ b/lib/Automake/Parser/test.sh @@ -0,0 +1,23 @@ + +testfile() +{ + filename=$1 + echo $filename + perl -I. parser.pl $filename > $filename.gv + unflatten -f -l 10 -c 10 -o $filename1.gv $filename.gv + dot -Tpng $filename1.gv > $filename.png + rm $filename.gv $filename1.gv +} + +if [ $# -eq 0 ] +then + for entry in t/*.txt + do + testfile $entry + done +else + for entry in $@ + do + testfile $entry + done +fi |