diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2011-06-06 18:06:29 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2011-06-11 16:24:47 +0800 |
commit | b7a822f06696cb0a8bb6f37a7fdb083309d95f0a (patch) | |
tree | 497b28ee2925365126a60059d2884921bdfa05e1 /test | |
parent | Utility: fix error counting (diff) | |
download | libbash-b7a822f06696cb0a8bb6f37a7fdb083309d95f0a.tar.gz libbash-b7a822f06696cb0a8bb6f37a7fdb083309d95f0a.tar.bz2 libbash-b7a822f06696cb0a8bb6f37a7fdb083309d95f0a.zip |
Walker: support array offset expansion
* is removed from var_name as most expansions don't support it. Parser
grammar is adjusted to generate better AST.
Diffstat (limited to 'test')
-rwxr-xr-x | test/script_compiler.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/script_compiler.sh b/test/script_compiler.sh index 021855e..6ff5672 100755 --- a/test/script_compiler.sh +++ b/test/script_compiler.sh @@ -1,11 +1,14 @@ #!/bin/sh declare -i error=0 +result=$(mktemp) for script in $@ do - ./variable_printer $script 2>&1 | diff -u $script.result - + sed "s/@srcdir@/$srcdir/" $script.result > $result + ./variable_printer $script 2>&1 | diff -u $result - error+=$? done +rm -rf $result exit $error |