diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-10 22:29:54 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-10 22:29:54 +0000 |
commit | 88c468415cc577ed4cd53b699ee1bd603fc8608a (patch) | |
tree | 92a3edf05e4e3e7116e1f312a807995cfd47bfc1 | |
parent | dfe2d27c2d2466dcced51352bdd33767c3a6986d (diff) | |
download | pyserial-git-88c468415cc577ed4cd53b699ee1bd603fc8608a.tar.gz |
move test scripts to separate test directory
-rw-r--r-- | pyserial/documentation/examples.rst | 22 | ||||
-rw-r--r-- | pyserial/test/run_all_tests.py (renamed from pyserial/examples/run_all_tests.py) | 0 | ||||
-rw-r--r-- | pyserial/test/test.py (renamed from pyserial/examples/test.py) | 0 | ||||
-rw-r--r-- | pyserial/test/test_advanced.py (renamed from pyserial/examples/test_advanced.py) | 0 | ||||
-rw-r--r-- | pyserial/test/test_high_load.py (renamed from pyserial/examples/test_high_load.py) | 0 | ||||
-rw-r--r-- | pyserial/test/test_iolib.py (renamed from pyserial/examples/test_iolib.py) | 0 |
6 files changed, 14 insertions, 8 deletions
diff --git a/pyserial/documentation/examples.rst b/pyserial/documentation/examples.rst index 30ff8e3..e5901fa 100644 --- a/pyserial/documentation/examples.rst +++ b/pyserial/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 diff --git a/pyserial/examples/run_all_tests.py b/pyserial/test/run_all_tests.py index b4a954d..b4a954d 100644 --- a/pyserial/examples/run_all_tests.py +++ b/pyserial/test/run_all_tests.py diff --git a/pyserial/examples/test.py b/pyserial/test/test.py index 6197bc3..6197bc3 100644 --- a/pyserial/examples/test.py +++ b/pyserial/test/test.py diff --git a/pyserial/examples/test_advanced.py b/pyserial/test/test_advanced.py index 6c45006..6c45006 100644 --- a/pyserial/examples/test_advanced.py +++ b/pyserial/test/test_advanced.py diff --git a/pyserial/examples/test_high_load.py b/pyserial/test/test_high_load.py index ab8aae2..ab8aae2 100644 --- a/pyserial/examples/test_high_load.py +++ b/pyserial/test/test_high_load.py diff --git a/pyserial/examples/test_iolib.py b/pyserial/test/test_iolib.py index d4e9315..d4e9315 100644 --- a/pyserial/examples/test_iolib.py +++ b/pyserial/test/test_iolib.py |