Commit | Line | Data |
---|---|---|
be60ffd0 | 1 | #!/usr/bin/env python3 |
ae48acc8 | 2 | |
866c42e6 DGM |
3 | # Copyright (C) 2013 Intra2net AG |
4 | # | |
494b38aa DGM |
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 | |
866c42e6 DGM |
8 | # (at your option) any later version. |
9 | # | |
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 | |
494b38aa | 13 | # GNU Lesser General Public License for more details. |
866c42e6 DGM |
14 | # |
15 | # You should have received a copy of the GNU General Public License | |
494b38aa DGM |
16 | # along with this program. If not, see |
17 | # <http://www.gnu.org/licenses/lgpl-3.0.html> | |
866c42e6 DGM |
18 | |
19 | ||
ae48acc8 ERE |
20 | import unittest |
21 | ||
3ba1441c | 22 | from testing.test_crypto import HeaderTest, AESGCMTest |
8ab92b45 | 23 | from testing.test_multivol import MultivolGnuFormatTest, MultivolPaxFormatTest |
5fdff89f | 24 | from testing.test_concat_compress import ConcatCompressTest |
00b8c150 | 25 | from testing.test_recover import \ |
e25f31ac PG |
26 | RecoverCorruptPayloadSingleTest \ |
27 | , RecoverCorruptPayloadMultiTest \ | |
28 | , RecoverCorruptPayloadGZSingleTest \ | |
29 | , RecoverCorruptPayloadGZMultiTest \ | |
30 | , RecoverCorruptPayloadGZAESSingleTest \ | |
31 | , RecoverCorruptPayloadGZAESMultiTest \ | |
32 | , RecoverCorruptHeaderSingleTest \ | |
33 | , RecoverCorruptHeaderMultiTest \ | |
34 | , RecoverCorruptHeaderGZSingleTest \ | |
35 | , RecoverCorruptHeaderGZMultiTest \ | |
36 | , RecoverCorruptHeaderGZAESSingleTest \ | |
37 | , RecoverCorruptHeaderGZAESMultiTest \ | |
37ccf5bc PG |
38 | , RecoverCorruptTruncateTest \ |
39 | , RecoverCorruptTruncateGZTest \ | |
40 | , RecoverCorruptTruncateGZAESTest \ | |
afb2d647 | 41 | , RescueCorruptHeaderCTSizeGZAESTest \ |
e25f31ac PG |
42 | , RecoverCorruptEntireHeaderSingleTest \ |
43 | , RecoverCorruptEntireHeaderMultiTest \ | |
44 | , RecoverCorruptEntireHeaderGZSingleTest \ | |
45 | , RecoverCorruptEntireHeaderGZMultiTest \ | |
46 | , RecoverCorruptEntireHeaderGZAESSingleTest \ | |
47 | , RecoverCorruptEntireHeaderGZAESMultiTest \ | |
afb2d647 PG |
48 | , RescueCorruptLeadingGarbageSingleTest \ |
49 | , RescueCorruptLeadingGarbageMultiTest \ | |
e25f31ac PG |
50 | , RecoverCorruptTrailingDataSingleTest \ |
51 | , RecoverCorruptTrailingDataMultiTest \ | |
52 | , RecoverCorruptTrailingDataGZSingleTest \ | |
53 | , RecoverCorruptTrailingDataGZMultiTest \ | |
54 | , RecoverCorruptTrailingDataGZAESSingleTest \ | |
20e1d773 PG |
55 | , RecoverCorruptTrailingDataGZAESMultiTest \ |
56 | , RecoverCorruptVolumeTest \ | |
57 | , RecoverCorruptVolumeGZTest \ | |
3692fd82 PG |
58 | , RecoverCorruptVolumeGZAESTest \ |
59 | , RecoverCorruptHoleTest \ | |
60 | , RecoverCorruptHoleGZTest \ | |
2fe5f6e7 | 61 | , RecoverCorruptHoleGZAESTest \ |
37ccf5bc PG |
62 | , RescueCorruptTruncateTest \ |
63 | , RescueCorruptTruncateGZTest \ | |
64 | , RescueCorruptTruncateGZAESTest \ | |
2fe5f6e7 PG |
65 | , RescueCorruptHoleTest \ |
66 | , RescueCorruptHoleGZTest \ | |
67 | , RescueCorruptHoleGZAESTest \ | |
047239f3 PG |
68 | , GenIndexIntactSingleTest \ |
69 | , GenIndexIntactSingleGZTest \ | |
70 | , GenIndexIntactSingleGZAESTest \ | |
71 | , GenIndexIntactMultiTest \ | |
72 | , GenIndexIntactMultiGZTest \ | |
6e1f5355 | 73 | , GenIndexIntactMultiGZAESTest \ |
37ccf5bc PG |
74 | , GenIndexCorruptTruncateTest \ |
75 | , GenIndexCorruptTruncateGZTest \ | |
76 | , GenIndexCorruptTruncateGZAESTest \ | |
6e1f5355 PG |
77 | , GenIndexCorruptHoleTest \ |
78 | , GenIndexCorruptHoleGZTest \ | |
79 | , GenIndexCorruptHoleGZAESTest \ | |
80 | , GenIndexCorruptEntireHeaderTest \ | |
81 | , GenIndexCorruptEntireHeaderGZTest \ | |
82 | , GenIndexCorruptEntireHeaderGZAESTest | |
83 | ||
0112ba0d | 84 | from testing.test_rescue_tar import RescueTarTest |
6e812ad9 | 85 | from testing.test_encryption import EncryptionTest |
1a985013 ERE |
86 | from testing.test_deltatar import (DeltaTarTest, DeltaTar2Test, |
87 | DeltaTarStreamTest, DeltaTarGzipTest, DeltaTarGzipStreamTest, | |
88 | DeltaTarGzipConcatTest, DeltaTarGzipAes128ConcatTest, | |
cc552d6e | 89 | DeltaTarAes128ConcatTest, |
a20c6239 PG |
90 | DeltaTarFSGzipTest, DeltaTarFSGzipConcatTest, |
91 | DeltaTarFSAes128ConcatTest, DeltaTarFSGzipAes128ConcatTest | |
92 | ||
ac5e4184 | 93 | ) |
08bb4b4a | 94 | from testing.test_compression_level import suite |
ae48acc8 ERE |
95 | |
96 | if __name__ == "__main__": | |
0165ca3c | 97 | import sys |
e70eff02 PG |
98 | unittest.TextTestRunner().run(suite()) |
99 | unittest.main() | |
0165ca3c | 100 |