mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Tweak zero_length_keys.sh and test/include.am to make out-of-tree builds work
This commit is contained in:
parent
2edfdc02a2
commit
038804e13d
@ -122,7 +122,7 @@ if USEPYTHON
|
|||||||
./src/test/test-bt-cl assert | $(PYTHON) $(top_srcdir)/src/test/bt_test.py
|
./src/test/test-bt-cl assert | $(PYTHON) $(top_srcdir)/src/test/bt_test.py
|
||||||
./src/test/test-bt-cl crash | $(PYTHON) $(top_srcdir)/src/test/bt_test.py
|
./src/test/test-bt-cl crash | $(PYTHON) $(top_srcdir)/src/test/bt_test.py
|
||||||
endif
|
endif
|
||||||
./src/test/zero_length_keys.sh
|
$(top_srcdir)/src/test/zero_length_keys.sh
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
src/test/bt_test.py \
|
src/test/bt_test.py \
|
||||||
|
@ -26,7 +26,9 @@ if [ $# -lt 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export DATA_DIR=`mktemp -d -t tor_zero_length_keys`
|
export DATA_DIR=`mktemp -d -t tor_zero_length_keys`
|
||||||
TOR="src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 12345"
|
# DisableNetwork means that the ORPort won't actually be opened.
|
||||||
|
# 'ExitRelay 0' suppresses a warning.
|
||||||
|
TOR="./src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 12345 --ExitRelay 0"
|
||||||
|
|
||||||
if [ -s "$DATA_DIR"/keys/secret_id_key -a -s "$DATA_DIR"/keys/secret_onion_key -a -s "$DATA_DIR"/keys/secret_onion_key_ntor ]; then
|
if [ -s "$DATA_DIR"/keys/secret_id_key -a -s "$DATA_DIR"/keys/secret_onion_key -a -s "$DATA_DIR"/keys/secret_onion_key_ntor ]; then
|
||||||
echo "Failure: Previous tor keys present in tor data directory"
|
echo "Failure: Previous tor keys present in tor data directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user