aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-06 18:06:29 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-06-11 16:24:47 +0800
commitb7a822f06696cb0a8bb6f37a7fdb083309d95f0a (patch)
tree497b28ee2925365126a60059d2884921bdfa05e1 /test
parentUtility: fix error counting (diff)
downloadlibbash-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-xtest/script_compiler.sh5
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