aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-03 13:22:23 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-03 13:22:23 -0500
commit92af8e511394685f7a39224ec1f73ce79fcf2c42 (patch)
treed593804f2f558a9d01c8c6e687b6c0a7162b4b10 /src/test/test.c
parent417a324a8577b0c61185c9d06eb72fbc483d984b (diff)
downloadtor-92af8e511394685f7a39224ec1f73ce79fcf2c42.tar.gz
tor-92af8e511394685f7a39224ec1f73ce79fcf2c42.zip
Add a framework for testing set_routerstatus_from_routerinfo().
Additionally, use it to test that is_staledesc is set correctly. Eventually we'll want to test all the other flags, but I'm aiming for only adding coverage on the changed code here.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 17b736d305..bbb00da788 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -866,7 +866,8 @@ struct testgroup_t testgroups[] = {
{ "crypto/pem/", pem_tests },
{ "dir/", dir_tests },
{ "dir/md/", microdesc_tests },
- { "dir/voting-schedule/", voting_schedule_tests },
+ { "dir/voting/flags/", voting_flags_tests },
+ { "dir/voting/schedule/", voting_schedule_tests },
{ "dir_handle_get/", dir_handle_get_tests },
{ "dns/", dns_tests },
{ "dos/", dos_tests },