From 012c44538ce15a3e45d6cdea0935062bdcaf5bf4 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 18 Oct 2019 18:00:00 +1000 Subject: test: Skip test scripts that require the relay module When tor is built without the relay module. Part of 32123. --- src/test/test_zero_length_keys.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/test_zero_length_keys.sh') diff --git a/src/test/test_zero_length_keys.sh b/src/test/test_zero_length_keys.sh index 84ca513b0a..eeabab352d 100755 --- a/src/test/test_zero_length_keys.sh +++ b/src/test/test_zero_length_keys.sh @@ -1,6 +1,11 @@ #!/bin/sh # Check that tor regenerates keys when key files are zero-length +if "${builddir:-.}/src/app/tor" --list-modules | grep -q "relay: no"; then + echo "This test requires the relay module. Skipping." >&2 + exit 77 +fi + exitcode=0 "${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -z || exitcode=1 -- cgit v1.2.3-54-g00ecf