summaryrefslogtreecommitdiff
path: root/src/test/test_zero_length_keys.sh
blob: f85edb68dbe6295b029453ce9f29be9c20012d8a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Check that tor regenerates keys when key files are zero-length

exitcode=0

"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/or/tor" -z || exitcode=1
"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/or/tor" -d || exitcode=1
"${SHELL:-sh}" "${abs_top_srcdir:-.}/src/test/zero_length_keys.sh" "${builddir:-.}/src/or/tor" -e || exitcode=1

exit ${exitcode}