summaryrefslogtreecommitdiff
path: root/source3/stf/test.py
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-12 03:08:28 +0000
committerMartin Pool <mbp@samba.org>2003-03-12 03:08:28 +0000
commiteb4ea93ac3a1bc1bb395ee0d74d72b08b3fe8190 (patch)
tree0f49e10b5e5506563508aa61ec6fd216d90e3afc /source3/stf/test.py
parent053435a8febdd12b240db752ca83b0833f8c1909 (diff)
downloadsamba-eb4ea93ac3a1bc1bb395ee0d74d72b08b3fe8190.tar.gz
samba-eb4ea93ac3a1bc1bb395ee0d74d72b08b3fe8190.tar.bz2
samba-eb4ea93ac3a1bc1bb395ee0d74d72b08b3fe8190.zip
Import Samba Testing Framework code from private CVS module.
(This used to be commit 0effe832a48f0c51d50675558cc2744e815d68c7)
Diffstat (limited to 'source3/stf/test.py')
-rwxr-xr-xsource3/stf/test.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/source3/stf/test.py b/source3/stf/test.py
new file mode 100755
index 0000000000..2e9abd976f
--- /dev/null
+++ b/source3/stf/test.py
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+
+# meta-test-case / example for comfychair. Should demonstrate
+# different kinds of failure.
+
+import comfychair, stf
+
+class NormalTest(comfychair.TestCase):
+ def runTest(self):
+ pass
+
+class RootTest(comfychair.TestCase):
+ def setUp(self):
+ self.require_root()
+
+ def runTest(self):
+ pass
+
+class GoodExecTest(comfychair.TestCase):
+ def runTest(self):
+ exit, stdout = self.runCmdUnchecked("ls -l")
+
+class BadExecTest(comfychair.TestCase):
+ def setUp(self):
+ exit, stdout = self.runCmdUnchecked("spottyfoot --slobber",
+ skip_on_noexec = 1)
+
+comfychair.runtests([NormalTest, RootTest, GoodExecTest, BadExecTest])