From 43f350a154b2225cead284ac25a94c5c0b6d4a76 Mon Sep 17 00:00:00 2001 From: cliechti Date: Mon, 10 Aug 2009 22:29:54 +0000 Subject: move test scripts to separate test directory git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@334 f19166aa-fa4f-0410-85c2-fa1106f25c8a --- documentation/examples.rst | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'documentation') diff --git a/documentation/examples.rst b/documentation/examples.rst index 30ff8e3..e5901fa 100644 --- a/documentation/examples.rst +++ b/documentation/examples.rst @@ -287,16 +287,21 @@ scanwin32.py_ Unit tests ========== The project uses a number of unit test to verify the functionality. They all -need a loop back connector. The scripts itself contain more information. +need a loop back connector. The scripts itself contain more information. All +test scripts are contained in the directory ``test``. The unit tests are performed on port ``0`` unless a different device name or -rfc2217 URL is given on the command line (argv[1]). +``rfc2217://`` URL is given on the command line (argv[1]). + +run_all_tests.py_ + Collect all tests from all ``test*`` files and run them. By default, the + ``loop://`` device is used. test.py_ - Basic tests. + Basic tests (binary capabilities, timeout, control lines). test_advanced.py_ - Test more advanced features. + Test more advanced features (properties). test_high_load.py_ Tests involving sending a lot of data. @@ -305,7 +310,8 @@ test_iolib.py_ Tests involving the :mod:`io` library. Only available for Python 2.6 and newer. -.. _test.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/examples/test.py -.. _test_advanced.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/examples/test_advanced.py -.. _test_high_load.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/examples/test_high_load.py -.. _test_iolib.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/examples/test_iolib.py +.. _run_all_tests.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/test/run_all_tests.py +.. _test.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/test/test.py +.. _test_advanced.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/test/test_advanced.py +.. _test_high_load.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/test/test_high_load.py +.. _test_iolib.py: http://pyserial.svn.sourceforge.net/viewvc/*checkout*/pyserial/trunk/pyserial/test/test_iolib.py -- cgit v1.2.1