summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-10 22:29:54 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-10 22:29:54 +0000
commit43f350a154b2225cead284ac25a94c5c0b6d4a76 (patch)
treec7b79183a30ad30f1cf795719eac344db5000721
parent84d50f88f6e32e598df5b02753b6f49bd3e737ee (diff)
downloadpyserial-43f350a154b2225cead284ac25a94c5c0b6d4a76.tar.gz
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
-rw-r--r--documentation/examples.rst22
-rw-r--r--test/run_all_tests.py (renamed from examples/run_all_tests.py)0
-rw-r--r--test/test.py (renamed from examples/test.py)0
-rw-r--r--test/test_advanced.py (renamed from examples/test_advanced.py)0
-rw-r--r--test/test_high_load.py (renamed from examples/test_high_load.py)0
-rw-r--r--test/test_iolib.py (renamed from examples/test_iolib.py)0
6 files changed, 14 insertions, 8 deletions
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
diff --git a/examples/run_all_tests.py b/test/run_all_tests.py
index b4a954d..b4a954d 100644
--- a/examples/run_all_tests.py
+++ b/test/run_all_tests.py
diff --git a/examples/test.py b/test/test.py
index 6197bc3..6197bc3 100644
--- a/examples/test.py
+++ b/test/test.py
diff --git a/examples/test_advanced.py b/test/test_advanced.py
index 6c45006..6c45006 100644
--- a/examples/test_advanced.py
+++ b/test/test_advanced.py
diff --git a/examples/test_high_load.py b/test/test_high_load.py
index ab8aae2..ab8aae2 100644
--- a/examples/test_high_load.py
+++ b/test/test_high_load.py
diff --git a/examples/test_iolib.py b/test/test_iolib.py
index d4e9315..d4e9315 100644
--- a/examples/test_iolib.py
+++ b/test/test_iolib.py