[Documentation] Add dependency info to test docs #7635

pull elliotolds wants to merge 1 commits into bitcoin:master from elliotolds:docs4 changing 3 files +22 −2
  1. elliotolds commented at 10:35 AM on March 3, 2016: contributor

    When following the build instructions and then trying to run the RPC tests, a unix user would get an error when python tried to import zmq.

    This change updates the docs to let the user know how to install the required dependencies before running the RPC tests.

    There may be other dependencies that should be added to the docs, particularly ones for non-unix systems. This is the only unlisted dependency I encountered using linux.

  2. elliotolds commented at 10:37 AM on March 3, 2016: contributor

    I could also make the following change to the test itself, to check whether zmq is installed and warn the user if not: https://github.com/elliotolds/bitcoin/commit/ed067f722a24

    However, I'm not planning to submit that pull request unless people request it, because I feel the benefit is minor and not worth the extra code complexity.

  3. laanwj commented at 10:49 AM on March 3, 2016: member

    elliotolds@ed067f7 makes a lot of sense to me in combination with this documentation change. A few extra, independent, lines in the test runner won't be rejected for "code complexity" reasons :)

  4. laanwj added the label Docs and Output on Mar 3, 2016
  5. jmcorgan commented at 3:49 PM on March 3, 2016: contributor

    ACK. I agree also on ed067f7, except it has a typo ("import zmp") on line 49.

  6. in README.md:None in 738588e0d8 outdated
      54 | @@ -55,7 +55,7 @@ submit new unit tests for old code. Unit tests can be compiled and run
      55 |  
      56 |  There are also [regression and integration tests](/qa) of the RPC interface, written
      57 |  in Python, that are run automatically on the build server.
      58 | -These tests can be run with: `qa/pull-tester/rpc-tests.py`
      59 | +These tests can be run (if the [test dependencies](/qa) are installed) with: `qa/pull-tester/rpc-tests.py`
      60 |  
      61 |  The Travis CI system makes sure that every pull request is built for Windows
      62 |  and Linux, OSX, and that unit and sanity tests are automatically run.
    


    paveljanik commented at 3:51 PM on March 3, 2016:

    Can you please also change OSX -> OS X when you are touching this file?


    elliotolds commented at 10:24 PM on March 3, 2016:

    Done.

  7. in qa/README.md:None in 738588e0d8 outdated
       4 | @@ -5,6 +5,16 @@ Every pull request to the bitcoin repository is built and run through
       5 |  the regression test suite. You can also run all or only individual
       6 |  tests locally.
       7 |  
       8 | +Test dependencies
       9 | +=================
      10 | +Before running the tests, the following must be installed.
      11 | +
      12 | +Unix
    


    paveljanik commented at 3:53 PM on March 3, 2016:

    Looks like the command here doesn't even apply to all GNU/Linux based systems but only to apt-get based systems. Unix -> Linux at least?


    elliotolds commented at 10:25 PM on March 3, 2016:

    Just updated with a clarification that the instructions are for Ubuntu and Debian, as done in /doc/build-unix.md

  8. in qa/README.md:None in 1a3f1b49e6 outdated
      14 | +The python-zmq library is required. On Ubuntu or Debian it can be installed via: 
      15 | +```
      16 | +sudo apt-get install python-zmq
      17 | +```
      18 | +
      19 |  Running tests
    


    MarcoFalke commented at 11:00 PM on March 3, 2016:

    Nit: As you are already touching this file, mind to add a line to mention an undocumented arg below?

    --coverage (this generates a basic coverage report for the RPC)

  9. laanwj commented at 6:23 PM on March 7, 2016: member

    utACK after squash

  10. elliotolds force-pushed on Mar 10, 2016
  11. Check if zmq is installed in tests, update docs
    If ZMQ is enabled, check whether it's installed before running ZMQ tests.
    If it isn't, disable ZMQ and print a warning.
    
    Also add dependency info to test docs, so users know ZMQ is required
    before running tests, and so they know how to install it.
    
    When following the build instructions before this change then trying
    to run the RPC tests, a unix user would get an error when python
    tried to import zmq.
    
    There may be other dependencies that should be added to the docs,
    particularly ones for non-unix systems. This is the only unlisted
    dependency I encountered using linux.
    2ab835ae6c
  12. elliotolds force-pushed on Mar 10, 2016
  13. laanwj merged this on Mar 11, 2016
  14. laanwj closed this on Mar 11, 2016

  15. laanwj referenced this in commit 0fa88ef784 on Mar 11, 2016
  16. elliotolds deleted the branch on Mar 19, 2016
  17. MarcoFalke referenced this in commit 697ed8c827 on Jun 9, 2016
  18. nomnombtc referenced this in commit 0425bc06ba on Nov 12, 2016
  19. sickpig referenced this in commit 398cf0e020 on Nov 14, 2016
  20. codablock referenced this in commit 1a2def86cc on Sep 16, 2017
  21. codablock referenced this in commit 651a2b71b5 on Sep 19, 2017
  22. codablock referenced this in commit 5a55dacc2d on Dec 9, 2017
  23. codablock referenced this in commit f1e95e3584 on Dec 19, 2017
  24. zkbot referenced this in commit 025bd44543 on Nov 21, 2020
  25. zkbot referenced this in commit 7a0a268054 on Dec 2, 2020
  26. zkbot referenced this in commit c8896f9907 on Dec 2, 2020
  27. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me