[tor-bugs] #14107 [Tor]: Integrate stem tests into the suite of tests tor launches.

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 5 17:03:38 UTC 2015


#14107: Integrate stem tests into the suite of tests tor launches.
------------------------+--------------------------------
     Reporter:  nickm   |      Owner:
         Type:  defect  |     Status:  needs_review
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  tor-relay testing
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------

Comment (by atagar):

 Looks great! One thing you might want to consider is that Stem has
 multiple integ targets. By default it runs with an open control port but
 there's other options too...

 {{{
 % ./run_tests.py --help

 ...

   Integration targets:
     ONLINE       - Includes tests that require network activity.
     RELATIVE     - Uses a relative path for tor's data directory.
     CHROOT       - Simulates a chroot setup.
     RUN_NONE     - Configuration without a way for controllers to connect.
     RUN_OPEN     - Configuration with an open control port (default).
     RUN_PASSWORD - Configuration with password authentication.
     RUN_COOKIE   - Configuration with an authentication cookie.
     RUN_MULTIPLE - Configuration with both password and cookie
 authentication.
     RUN_SOCKET   - Configuration with a control socket.
     RUN_SCOOKIE  - Configuration with a control socket and authentication
 cookie.
     RUN_PTRACE   - Configuration with an open control port and
 'DisableDebuggerAttachment 0'
     RUN_ALL      - Runs integration tests for all connection
 configurations.
 }}}

 If you don't mind having a long runtime the RUN_ALL target will give you
 the best coverage by including all auth types, both
 ControlPort/ControlSocket, and DisableDebuggerAttachment.

 Maybe when Stem is unavailable make should give the setup instructions?

 {{{
 To run these tests you need Stem and a STEM_SOURCE_DIR environment
 variable
 telling us where to find it...

   % git clone https://git.torproject.org/stem.git
   % export STEM_SOURCE_DIR=`pwd`/stem
   % make test-stem
 }}}

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


More information about the tor-bugs mailing list