Port code to use optparse, rather than argparse.
[third_party/subunit] / all_tests.py
1 #
2 #  subunit: extensions to Python unittest to get test results from subprocesses.
3 #  Copyright (C) 2013  Robert Collins <robertc@robertcollins.net>
4 #
5 #  Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
6 #  license at the users choice. A copy of both licenses are available in the
7 #  project source as Apache-2.0 and BSD. You may not use this file except in
8 #  compliance with one of these two licences.
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
12 #  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
13 #  license you chose for the specific language governing permissions and
14 #  limitations under that license.
15 #
16
17 import unittest
18
19 import subunit
20
21
22 class ShellTests(subunit.ExecTestCase):
23
24     def test_sourcing(self):
25         """./shell/tests/test_source_library.sh"""
26
27     def test_functions(self):
28         """./shell/tests/test_function_output.sh"""
29
30
31 def test_suite():
32     result = unittest.TestSuite()
33     result.addTest(subunit.test_suite())
34     result.addTest(ShellTests('test_sourcing'))
35     result.addTest(ShellTests('test_functions'))
36     return result