ctdb-daemon: Exit if setting the session ID fails
[Samba.git] / selftest / tests / __init__.py
blob85d0316b46412397456ec2cc83b918ef3c947b3b
1 # __init__.py -- The tests for selftest
2 # Copyright (C) 2012 Jelmer Vernooij <jelmer@samba.org>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; version 3
7 # of the License or (at your option) any later version of
8 # the License.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 # MA 02110-1301, USA.
20 """Tests for selftest."""
22 from testtools import TestCase
24 import unittest
26 def test_suite():
27 result = unittest.TestSuite()
28 names = ['socket_wrapper', 'target', 'testlist', 'run', 'samba']
29 module_names = ['selftest.tests.test_' + name for name in names]
30 loader = unittest.TestLoader()
31 result.addTests(loader.loadTestsFromNames(module_names))
32 return result