aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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