| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | # Copyright (C) 2013 Intra2net AG |
| 4 | # |
| 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. |
| 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 |
| 13 | # GNU Lesser General Public License for more details. |
| 14 | # |
| 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> |
| 18 | |
| 19 | |
| 20 | import unittest |
| 21 | |
| 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_recover import \ |
| 26 | RecoverCorruptPayloadSingleTest \ |
| 27 | , RecoverCorruptPayloadMultiTest \ |
| 28 | , RecoverCorruptPayloadGZSingleTest \ |
| 29 | , RecoverCorruptPayloadGZMultiTest \ |
| 30 | , RecoverCorruptPayloadGZAESSingleTest \ |
| 31 | , RecoverCorruptPayloadGZAESMultiTest \ |
| 32 | , RecoverCorruptHeaderSingleTest \ |
| 33 | , RecoverCorruptHeaderMultiTest \ |
| 34 | , RecoverCorruptHeaderGZSingleTest \ |
| 35 | , RecoverCorruptHeaderGZMultiTest \ |
| 36 | , RecoverCorruptHeaderGZAESSingleTest \ |
| 37 | , RecoverCorruptHeaderGZAESMultiTest \ |
| 38 | , RecoverCorruptTruncateTest \ |
| 39 | , RecoverCorruptTruncateGZTest \ |
| 40 | , RecoverCorruptTruncateGZAESTest \ |
| 41 | , RescueCorruptHeaderCTSizeGZAESTest \ |
| 42 | , RecoverCorruptEntireHeaderSingleTest \ |
| 43 | , RecoverCorruptEntireHeaderMultiTest \ |
| 44 | , RecoverCorruptEntireHeaderGZSingleTest \ |
| 45 | , RecoverCorruptEntireHeaderGZMultiTest \ |
| 46 | , RecoverCorruptEntireHeaderGZAESSingleTest \ |
| 47 | , RecoverCorruptEntireHeaderGZAESMultiTest \ |
| 48 | , RescueCorruptLeadingGarbageSingleTest \ |
| 49 | , RescueCorruptLeadingGarbageMultiTest \ |
| 50 | , RecoverCorruptTrailingDataSingleTest \ |
| 51 | , RecoverCorruptTrailingDataMultiTest \ |
| 52 | , RecoverCorruptTrailingDataGZSingleTest \ |
| 53 | , RecoverCorruptTrailingDataGZMultiTest \ |
| 54 | , RecoverCorruptTrailingDataGZAESSingleTest \ |
| 55 | , RecoverCorruptTrailingDataGZAESMultiTest \ |
| 56 | , RecoverCorruptVolumeTest \ |
| 57 | , RecoverCorruptVolumeGZTest \ |
| 58 | , RecoverCorruptVolumeGZAESTest \ |
| 59 | , RecoverCorruptHoleTest \ |
| 60 | , RecoverCorruptHoleGZTest \ |
| 61 | , RecoverCorruptHoleGZAESTest \ |
| 62 | , RescueCorruptTruncateTest \ |
| 63 | , RescueCorruptTruncateGZTest \ |
| 64 | , RescueCorruptTruncateGZAESTest \ |
| 65 | , RescueCorruptHoleTest \ |
| 66 | , RescueCorruptHoleGZTest \ |
| 67 | , RescueCorruptHoleGZAESTest \ |
| 68 | , GenIndexIntactSingleTest \ |
| 69 | , GenIndexIntactSingleGZTest \ |
| 70 | , GenIndexIntactSingleGZAESTest \ |
| 71 | , GenIndexIntactMultiTest \ |
| 72 | , GenIndexIntactMultiGZTest \ |
| 73 | , GenIndexIntactMultiGZAESTest \ |
| 74 | , GenIndexCorruptTruncateTest \ |
| 75 | , GenIndexCorruptTruncateGZTest \ |
| 76 | , GenIndexCorruptTruncateGZAESTest \ |
| 77 | , GenIndexCorruptHoleTest \ |
| 78 | , GenIndexCorruptHoleGZTest \ |
| 79 | , GenIndexCorruptHoleGZAESTest \ |
| 80 | , GenIndexCorruptEntireHeaderTest \ |
| 81 | , GenIndexCorruptEntireHeaderGZTest \ |
| 82 | , GenIndexCorruptEntireHeaderGZAESTest |
| 83 | |
| 84 | from testing.test_rescue_tar import RescueTarTest |
| 85 | from testing.test_encryption import EncryptionTest |
| 86 | from testing.test_deltatar import (DeltaTarTest, DeltaTar2Test, |
| 87 | DeltaTarStreamTest, DeltaTarGzipTest, DeltaTarGzipStreamTest, |
| 88 | DeltaTarGzipConcatTest, DeltaTarGzipAes128ConcatTest, |
| 89 | DeltaTarAes128ConcatTest, |
| 90 | DeltaTarFSGzipTest, DeltaTarFSGzipConcatTest, |
| 91 | DeltaTarFSAes128ConcatTest, DeltaTarFSGzipAes128ConcatTest |
| 92 | |
| 93 | ) |
| 94 | from testing.test_compression_level import suite |
| 95 | |
| 96 | if __name__ == "__main__": |
| 97 | import sys |
| 98 | unittest.TextTestRunner().run(suite()) |
| 99 | unittest.main() |
| 100 | |