diff options
author | cvs2svn Import User <samba-bugs@samba.org> | 2003-03-18 07:09:24 +0000 |
---|---|---|
committer | cvs2svn Import User <samba-bugs@samba.org> | 2003-03-18 07:09:24 +0000 |
commit | 74d3be021897d47e04a4ebecc484d16621b93c9d (patch) | |
tree | b6551b8c36820b2d5c9d24c4531dd0f14dc7ed97 /source3/stf/test.py | |
parent | 417bf608f4253fadf4b227b5f7360f03b0193ff2 (diff) | |
parent | a084f06fe33eb9903489763bc34c7092080a0a5e (diff) | |
download | samba-74d3be021897d47e04a4ebecc484d16621b93c9d.tar.gz samba-74d3be021897d47e04a4ebecc484d16621b93c9d.tar.bz2 samba-74d3be021897d47e04a4ebecc484d16621b93c9d.zip |
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda)
Diffstat (limited to 'source3/stf/test.py')
-rwxr-xr-x | source3/stf/test.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/stf/test.py b/source3/stf/test.py new file mode 100755 index 0000000000..fb57926cc3 --- /dev/null +++ b/source3/stf/test.py @@ -0,0 +1,33 @@ +#!/usr/bin/python + +# meta-test-case / example for comfychair. Should demonstrate +# different kinds of failure. + +import comfychair + +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): + stdout = self.runcmd("ls -l") + +class BadExecTest(comfychair.TestCase): + def setup(self): + exit, stdout = self.runcmd_unchecked("spottyfoot --slobber", + skip_on_noexec = 1) + + +tests = [NormalTest, RootTest, GoodExecTest, BadExecTest] + +if __name__ == '__main__': + comfychair.main(tests) + |