()
| 12 | |
| 13 | |
| 14 | def main(): |
| 15 | print("Super Mega Tester: " + os.path.dirname(VerifyFilename)) |
| 16 | |
| 17 | #setup_logging(level=logging.INFO) |
| 18 | setup_logging(level=logging.WARNING) |
| 19 | |
| 20 | config.load() |
| 21 | check_deps() |
| 22 | |
| 23 | if not os.path.exists(os.path.dirname(VerifyFilename)): |
| 24 | print("{} directory does not exist".format(os.path.dirname(VerifyFilename))) |
| 25 | return |
| 26 | |
| 27 | if len(sys.argv) < 2: |
| 28 | print("Usage: python tester.py <test>") |
| 29 | print("Available tests: all, common, dll_loader, exe_code, exe_data, dll_code, dll_data") |
| 30 | return |
| 31 | |
| 32 | match sys.argv[1]: |
| 33 | case "all": |
| 34 | test_common() |
| 35 | |
| 36 | test_exe_data() |
| 37 | test_exe_code() |
| 38 | |
| 39 | test_dll_code() |
| 40 | test_dll_data() |
| 41 | |
| 42 | test_dll_loader() |
| 43 | |
| 44 | case "common": |
| 45 | test_common() |
| 46 | case "dll_loader": |
| 47 | test_dll_loader() |
| 48 | case "exe_code": |
| 49 | test_exe_code() |
| 50 | case "exe_data": |
| 51 | test_exe_data() |
| 52 | case "dll_code": |
| 53 | test_dll_code() |
| 54 | case "dll_data": |
| 55 | test_dll_data() |
| 56 | case _: |
| 57 | print("Unknown test: {}".format(sys.argv[1])) |
| 58 | print("Available tests: all, common, dll_loader, exe_code, exe_data, dll_code, dll_data") |
| 59 | return |
| 60 | |
| 61 | |
| 62 | def test_common(): |
no test coverage detected