test_zero_length_keys.sh 445 B

12345678910
  1. #!/bin/sh
  2. # Check that tor regenerates keys when key files are zero-length
  3. exitcode=0
  4. "${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -z || exitcode=1
  5. "${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -d || exitcode=1
  6. "${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/app/tor" -e || exitcode=1
  7. exit ${exitcode}