diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-04-24 08:41:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-04-24 08:41:53 -0400 |
commit | d579d751dc03c4a2f8dd31b6928a88bdc10d49a0 (patch) | |
tree | 42db77d47e3fea2abbdb2908de033c6494b07ce8 /src | |
parent | ecf98313d673f010b52f8d29c352cd9b8f145734 (diff) | |
download | tor-d579d751dc03c4a2f8dd31b6928a88bdc10d49a0.tar.gz tor-d579d751dc03c4a2f8dd31b6928a88bdc10d49a0.zip |
Kludge include.am to work with automake <1.12
The SH_LOG_COMPILER feature doesn't work with older automakes, and
those are still in use in many environments we want to support
development on, like Debian Stable.
Instead, use autoconf substitution to fill out the shebang lines on
the shell scripts, and an intermediate make target to make them
executable.
This is a bugfix on the patches for #15344. Bug not in any released
tor.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/include.am | 22 | ||||
-rwxr-xr-x | src/test/test_bt.sh.in | 2 | ||||
-rwxr-xr-x | src/test/test_ntor.sh.in | 2 | ||||
-rwxr-xr-x | src/test/test_zero_length_keys.sh.in | 2 |
4 files changed, 20 insertions, 8 deletions
diff --git a/src/test/include.am b/src/test/include.am index 3c9eed886f..c693544bd3 100644 --- a/src/test/include.am +++ b/src/test/include.am @@ -1,12 +1,24 @@ -TESTS += src/test/test src/test/test-slow src/test/test-memwipe \ - src/test/test_zero_length_keys.sh + +TESTSCRIPTS = src/test/test_zero_length_keys.sh if USEPYTHON -TESTS += src/test/test_ntor.sh src/test/test_bt.sh +TESTSCRIPTS += src/test/test_ntor.sh src/test/test_bt.sh endif -TEST_EXTENSIONS = .sh -SH_LOG_COMPILER = $(SHELL) +TESTS += src/test/test src/test/test-slow src/test/test-memwipe \ + $(TESTSCRIPTS) + +### This is a lovely feature, but it requires automake >= 1.12, and Tor +### doesn't require that yet. Below is a kludge to work around. +### +# TEST_EXTENSIONS = .sh +# SH_LOG_COMPILER = $(SHELL) + +check-am: set-test-permissions + +set-test-permissions: + chmod 755 $(TESTSCRIPTS) + noinst_PROGRAMS+= src/test/bench if UNITTESTS_ENABLED diff --git a/src/test/test_bt.sh.in b/src/test/test_bt.sh.in index d2498751cb..ca8be965d4 100755 --- a/src/test/test_bt.sh.in +++ b/src/test/test_bt.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!@SHELL@ # Test backtrace functionality. exitcode=0 diff --git a/src/test/test_ntor.sh.in b/src/test/test_ntor.sh.in index 5fea8ce31a..be35384ddf 100755 --- a/src/test/test_ntor.sh.in +++ b/src/test/test_ntor.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!@SHELL@ # Validate Tor's ntor implementation. exitcode=0 diff --git a/src/test/test_zero_length_keys.sh.in b/src/test/test_zero_length_keys.sh.in index 47467baa44..d1492d5e20 100755 --- a/src/test/test_zero_length_keys.sh.in +++ b/src/test/test_zero_length_keys.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!@SHELL@ # Check that tor regenerates keys when key files are zero-length exitcode=0 |