summaryrefslogtreecommitdiff
path: root/tests/instsh3.test
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-06-06 14:40:22 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-06-07 12:09:02 +0200
commit2838ad57693eec3e8467460e61e1c0d98ec53d3b (patch)
tree55a155d993e6f2561a32e28bdcb890ca56128c0b /tests/instsh3.test
parent0fe3c3285ba595cf5ce585b61f9f423714a66d96 (diff)
downloadautomake-2838ad57693eec3e8467460e61e1c0d98ec53d3b.tar.gz
tests: can use also $SHELL to check shell scripts from `lib/'
* tests/ar-lib.test: If the variable `$test_prefer_config_shell' is set to "yes", run the script under test with configure-time determined $SHELL, rather than with /bin/sh. The `$test_prefer_config_shell' variable defaults to empty, but can be overridden at runtime by the user, thus allowing more coverage. * tests/compile.test: Likewise. * tests/compile2.test: Likewise. * tests/compile3.test: Likewise. * tests/compile4.test: Likewise. * tests/compile5.test: Likewise. * tests/compile6.test: Likewise. * tests/instsh2.test: Likewise. * tests/instsh3.test: Likewise. * tests/mkinst3.test: Likewise. * tests/missing.test: Likewise. * tests/missing2.test: Likewise. * tests/missing3.test: Likewise. * tests/missing5.test: Likewise. * tests/defs (get_shell_script): New subroutine, factoring out code common to the tests above. (xsi-lib-shell): If `$test_prefer_config_shell' is set to "yes", check that $SHELL, not /bin/sh, supports XSI constructs, as we expect the test will use $SHELL and not /bin/sh to run the script being tested.
Diffstat (limited to 'tests/instsh3.test')
-rwxr-xr-xtests/instsh3.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/instsh3.test b/tests/instsh3.test
index da5041905..2cdf4a9e7 100755
--- a/tests/instsh3.test
+++ b/tests/instsh3.test
@@ -23,6 +23,8 @@ required=non-root
touch -t $old_timestamp foo \
|| skip_ "touch utility doesn't accept '-t' option"
+get_shell_script install-sh
+
./install-sh -d d1
# Do not change the timestamps when using -C.