var=foo
for i in 1 2 3 4 5 6 7 8 9 10 11 12; do
var=$var$var
+ # Temporary disable shell traces, because otherwise the result '.log' file
+ # would end up having too long lines that could confuse inferior awk
+ # implementations (e.g., Solaris 10 /usr/xpg4/bin/awk), which would cause
+ # spurious errors in our test harness.
+ set +x
done
+set -x # Re-enable shell traces.
T "very long variable name" <<END
$var = \$(call am__memoize,$var,foo)
test:
- test '\$($var)' = foo
- test '\$($var)' = foo
+ # Why we silence this?
+ # See comment above about overly long lines in '.log' file.
+ @echo test1; test '\$($var)' = foo
+ @echo test2; test '\$($var)' = foo
END
#---------------------------------------------------------------------------
for i in 1 2 3 4 5 6 7 8 9 10 11 12; do
var=$var$var
val=$val$val
+ # Temporary disable shell traces. See comment above for a rationale.
+ set +x
done
+set -x # Re-enable shell traces.
T "very long variable name with long content" <<END
$var = \$(call am__memoize,$var,$val)
test:
- test '\$($var)' = '$val'
- test '\$($var)' = '$val'
+ # Why we silence this?
+ # See comment above about overly long lines in '.log' file.
+ @echo test1; test '\$($var)' = '$val'
+ @echo test2; test '\$($var)' = '$val'
END
#---------------------------------------------------------------------------