3 # Copyright (C) 2013 Intra2net AG
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published
7 # by the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
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 Lesser 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, see
17 # <http://www.gnu.org/licenses/lgpl-3.0.html>
22 from testing.test_crypto import HeaderTest, AESGCMTest
23 from testing.test_multivol import MultivolGnuFormatTest, MultivolPaxFormatTest
24 from testing.test_concat_compress import ConcatCompressTest
25 from testing.test_rescue_tar import RescueTarTest
26 from testing.test_encryption import EncryptionTest
27 from testing.test_deltatar import (DeltaTarTest, DeltaTar2Test,
28 DeltaTarStreamTest, DeltaTarGzipTest, DeltaTarGzipStreamTest,
29 DeltaTarGzipConcatTest, DeltaTarGzipAes128ConcatTest,
30 DeltaTarAes128ConcatTest
32 from testing.test_compression_level import suite
34 if __name__ == "__main__":
36 if len (sys.argv) == 1:
37 unittest.TextTestRunner().run(suite())
40 suite = unittest.TestSuite ()
43 for group in [#testing.test_multivol
44 MultivolGnuFormatTest, MultivolPaxFormatTest
45 # testing.test_concat_compress
47 # testing.test_rescue_tar
49 # testing.test_encryption
51 # testing.test_deltatar
52 , DeltaTarTest, DeltaTar2Test
53 , DeltaTarStreamTest, DeltaTarGzipTest
54 , DeltaTarGzipStreamTest, DeltaTarGzipConcatTest
55 , DeltaTarGzipAes128ConcatTest
56 , DeltaTarAes128ConcatTest
57 , HeaderTest, AESGCMTest
61 except ValueError: # no such test
63 print ("including ā%sā" % n)
68 for arg in sys.argv [1:]:
72 print ("ERROR: no valid test name specified, please double-check",
75 runner = unittest.TextTestRunner ()