[tor-bugs] #22816 [Core Tor/Tor]: Run tests for single Rust module

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 4 20:32:14 UTC 2017


#22816: Run tests for single Rust module
------------------------------+------------------------------
     Reporter:  chelseakomlo  |      Owner:
         Type:  enhancement   |     Status:  new
     Priority:  Low           |  Milestone:  Tor: unspecified
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  rust
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+------------------------------
 In Tor, we currently have the ability to run tests for a single C module
 (or even a single unit test). As specified in doc/HACKING/WritingTests,
 running tests for the cell format module (for example) can be done via
 `./src/test/test cellfmt/..`

 Rust modules should have a similar option. Currently 'cargo test' can be
 run within a single Rust module, but this will not link against C modules.
 It would be good to be able to do this and retain the ability to test a
 single Rust module. Also, it would be nice to make this similar to running
 single C module tests, to minimize developer confusion.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22816>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list