diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-03 13:11:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-03 13:11:58 -0500 |
commit | ec965ba98b8ad5b7aef8f5af68344c16e38ccd4d (patch) | |
tree | e485125b29df5836de37e79fc555791d13a60b70 /scripts/maint/practracker/test_practracker.sh | |
parent | 2542a24b63f9d5c7dfd05932fc3b2f05cd720024 (diff) | |
download | tor-ec965ba98b8ad5b7aef8f5af68344c16e38ccd4d.tar.gz tor-ec965ba98b8ad5b7aef8f5af68344c16e38ccd4d.zip |
practracker: integration tests for --regen and --regen-overbroad
Diffstat (limited to 'scripts/maint/practracker/test_practracker.sh')
-rwxr-xr-x | scripts/maint/practracker/test_practracker.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/maint/practracker/test_practracker.sh b/scripts/maint/practracker/test_practracker.sh index afc267a000..e29b9106de 100755 --- a/scripts/maint/practracker/test_practracker.sh +++ b/scripts/maint/practracker/test_practracker.sh @@ -82,3 +82,15 @@ run_practracker --exceptions "${DATA}/ex1.txt" --list-overbroad \ compare "${TMPDIR}/ex1-overbroad-received.txt" \ "${DATA}/ex1-overbroad-expected.txt" + +echo "ex1.regen:" + +cp "${DATA}/ex1.txt" "${TMPDIR}/ex1-copy.txt" +run_practracker --exceptions "${TMPDIR}/ex1-copy.txt" --regen >/dev/null 2>&1 +compare "${TMPDIR}/ex1-copy.txt" "${DATA}/ex1-regen-expected.txt" + +echo "ex1.regen_overbroad:" + +cp "${DATA}/ex1.txt" "${TMPDIR}/ex1-copy.txt" +run_practracker --exceptions "${TMPDIR}/ex1-copy.txt" --regen-overbroad >/dev/null 2>&1 +compare "${TMPDIR}/ex1-copy.txt" "${DATA}/ex1-regen-overbroad-expected.txt" |