aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radakovic <stevan.radakovic@linaro.org>2012-05-17 14:37:39 +0200
committerStevan Radakovic <stevan.radakovic@linaro.org>2012-05-17 14:37:39 +0200
commita9cef5c1fb4515c50ebe7427fc890b2c47c22ee2 (patch)
tree6570a34788e8737e32597547093753f49b51daaa
parent9917739d94d0f7b74032a5e1738e6f8bb75f7dda (diff)
Renamed docs into testplans, added separate execution of production testplans.
-rw-r--r--README6
-rw-r--r--testing/__init__.py6
-rw-r--r--testplans/__init__.py12
-rw-r--r--testplans/releases.txt (renamed from docs/releases.txt)0
-rw-r--r--testplans/snapshots.txt (renamed from docs/snapshots.txt)0
5 files changed, 18 insertions, 6 deletions
diff --git a/README b/README
index 93cd867..9d7761b 100644
--- a/README
+++ b/README
@@ -90,6 +90,12 @@ Python and Apache2:
$ testr init
$ testr run
+To run the production test plans (NOTE: They will take a bit more time to run)
+execute the following:
+
+ $ testr init
+ $ testr run testplans.test_suite
+
Tests for PHP license-matching logic
....................................
diff --git a/testing/__init__.py b/testing/__init__.py
index c0c24ee..ff8b7ce 100644
--- a/testing/__init__.py
+++ b/testing/__init__.py
@@ -1,6 +1,5 @@
import os
import unittest
-import doctest
from testing.test_click_through_license import *
from testing.test_publish_to_snapshots import *
@@ -14,9 +13,4 @@ def test_suite():
]
loader = unittest.TestLoader()
suite = loader.loadTestsFromNames(module_names)
- for filename in os.listdir("docs/"):
- suite.addTest(doctest.DocFileSuite(
- 'docs/' + filename, module_relative=False,
- optionflags=doctest.ELLIPSIS)
- )
return suite
diff --git a/testplans/__init__.py b/testplans/__init__.py
new file mode 100644
index 0000000..4a85837
--- /dev/null
+++ b/testplans/__init__.py
@@ -0,0 +1,12 @@
+import os
+import unittest
+import doctest
+
+def test_suite():
+ suite = unittest.TestSuite()
+ for filename in os.listdir("testplans/"):
+ suite.addTest(doctest.DocFileSuite(
+ 'testplans/' + filename, module_relative=False,
+ optionflags=doctest.ELLIPSIS)
+ )
+ return suite
diff --git a/docs/releases.txt b/testplans/releases.txt
index c1db01f..c1db01f 100644
--- a/docs/releases.txt
+++ b/testplans/releases.txt
diff --git a/docs/snapshots.txt b/testplans/snapshots.txt
index 12495f3..12495f3 100644
--- a/docs/snapshots.txt
+++ b/testplans/snapshots.txt