diff --git a/Makefile.am b/Makefile.am index accd54c76..cb374b37c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = docs/manual.html docs/manual.rst docs/extension_protocol.rst \ docs/extension_protocol.html docs/udp_tracker_protocol.rst \ docs/projects.rst docs/projects.html \ docs/building.rst docs/building.html \ +docs/running_tests.rst docs/running_tests.html \ docs/python_binding.rst docs/python_binding.html \ docs/arctic_thumb.png \ docs/bitbuddy_thumb.jpg \ diff --git a/docs/index.html b/docs/index.html index 17f4348db..181215b53 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,53 +12,54 @@

Extensions


Bindings


-
-

libtorrent

+
+

libtorrent

libtorrent is a C++ library that aims to be a good alternative to all the other bittorrent implementations around. It is a library and not a full featured client, although it comes with a working -example client.

+example client.

The main goals of libtorrent are:

  • to be cpu efficient
  • to be memory efficient
  • to be very easy to use
-
-

+ -
-

Feedback

-

There's a mailing list, general libtorrent discussion.

+
+

Feedback

+

There's a mailing list, general libtorrent discussion.

You can usually find me as hydri in #libtorrent on irc.freenode.net.

-
-

Acknowledgements

+
+

Acknowledgements

Written by Arvid Norberg. Copyright (c) 2003-2006

Contributions by Magnus Jonsson, Daniel Wallin and Cory Nelson

Thanks to Reimond Retz for bugfixes, suggestions and testing

Project is hosted by sourceforge.

-

sf_logo

+

sf_logo

diff --git a/docs/index.rst b/docs/index.rst index 38330a01d..dd80c61ee 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -7,6 +7,7 @@ * `building libtorrent`_ * examples_ * `api documentation`_ +* `running tests`_ * screenshot_ * `mailing list`_ (archive_) * `who's using libtorrent?`_ @@ -50,6 +51,7 @@ libtorrent .. _`building libtorrent`: building.html .. _examples: examples.html .. _`api documentation`: manual.html +.. _`running tests`: running_tests.html .. _screenshot: client_test.png .. _`extensions protocol`: extension_protocol.html .. _`plugin interface`: libtorrent_plugins.html diff --git a/docs/running_tests.html b/docs/running_tests.html new file mode 100644 index 000000000..fd962557c --- /dev/null +++ b/docs/running_tests.html @@ -0,0 +1,83 @@ + + + + + + +libtorrent manual + + + + +
+

libtorrent manual

+ +++ + + + +
Author:Arvid Norberg, arvid@rasterbar.com
+
+

Table of contents

+ +
+
+

running and building tests

+

Some of the tests of libtorrent are not self contained. For instance, in +order to test the http_connection class in libtorrent, the test requires +lighty. This document outlines the requirements of the tests as well as +describes how to set up your environment to be able to run them.

+
+
+

lighty

+

Download lighty. I've tested with lighttpd-1.4.19. If libtorrent is built +with SSL support (which it is by default), lighty needs SSL support as well.

+

To build lighty with SSL support do:

+
+./configure --with-openssl
+
+

Followed by:

+
+sudo make install
+
+

Make sure you have SSL support in lighty by running:

+
+lighttpd -V
+
+

Which gives you a list of all enabled features.

+
+
+

delegate

+

Delegate can act as many different proxies, which makes it a convenient +tool to use to test libtorrent's support for SOCKS4, SOCKS5, HTTPS and +HTTP proxies.

+

You can download prebuilt binaries for the most common platforms on +deletate's download page. Make sure to name the executable delegated +and put it in a place where a shell can pick it up, in its PATH. For +instance /bin.

+
+
+

OpenSSL

+

In order to create an SSL certificate for lighty, openssl is used. More +specifically, the following command is issued by the test to create the +certificate file:

+
+echo -e "AU\ntest province\ntest city\ntest company\ntest department\n\
+        tester\ntest@test.com" | openssl req -new -x509 -keyout server.pem \
+        -out server.pem -days 365 -nodes
+
+

This will write server.pem which is referenced in the lighty +confiuration file.

+

OpenSSL comes installed with most Linux and BSD distros, including Mac OS X. +You can download it from the openssl homepage.

+
+
+ + diff --git a/docs/running_tests.rst b/docs/running_tests.rst new file mode 100644 index 000000000..550ecd886 --- /dev/null +++ b/docs/running_tests.rst @@ -0,0 +1,75 @@ +================= +libtorrent manual +================= + +:Author: Arvid Norberg, arvid@rasterbar.com + +.. contents:: Table of contents + :depth: 2 + :backlinks: none + +running and building tests +========================== + +Some of the tests of libtorrent are not self contained. For instance, in +order to test the ``http_connection`` class in libtorrent, the test requires +lighty_. This document outlines the requirements of the tests as well as +describes how to set up your environment to be able to run them. + +.. _lighty: http://www.lighttpd.net + +lighty +====== + +Download lighty_. I've tested with ``lighttpd-1.4.19``. If libtorrent is built +with SSL support (which it is by default), lighty needs SSL support as well. + +To build lighty with SSL support do:: + + ./configure --with-openssl + +Followed by:: + + sudo make install + +Make sure you have SSL support in lighty by running:: + + lighttpd -V + +Which gives you a list of all enabled features. + +delegate +======== + +Delegate_ can act as many different proxies, which makes it a convenient +tool to use to test libtorrent's support for SOCKS4, SOCKS5, HTTPS and +HTTP proxies. + +.. _Delegate: http://www.delegate.org + +You can download prebuilt binaries for the most common platforms on +`deletate's download page`_. Make sure to name the executable ``delegated`` +and put it in a place where a shell can pick it up, in its ``PATH``. For +instance ``/bin``. + +.. _`deletate's download page`: http://www.delegate.org/delegate/download/ + +OpenSSL +======= + +In order to create an SSL certificate for lighty_, openssl is used. More +specifically, the following command is issued by the test to create the +certificate file:: + + echo -e "AU\ntest province\ntest city\ntest company\ntest department\n\ + tester\ntest@test.com" | openssl req -new -x509 -keyout server.pem \ + -out server.pem -days 365 -nodes + +This will write ``server.pem`` which is referenced in the lighty +confiuration file. + +OpenSSL comes installed with most Linux and BSD distros, including Mac OS X. +You can download it from `the openssl homepage`_. + +.. _`the openssl homepage`: http://www.openssl.org/ +