Run all end-to-end tests.
()
| 362 | |
| 363 | |
| 364 | def main(): |
| 365 | """Run all end-to-end tests.""" |
| 366 | print("🚀 Starting GitBase End-to-End Tests") |
| 367 | print(f"PyTorch version: {torch.__version__}") |
| 368 | print(f"CUDA available: {torch.cuda.is_available()}") |
| 369 | if torch.cuda.is_available(): |
| 370 | print(f"CUDA device: {torch.cuda.get_device_name()}") |
| 371 | print(f"CUDA memory: {torch.cuda.get_device_properties(0).total_memory / 1024**3:.1f} GB") |
| 372 | print() |
| 373 | |
| 374 | try: |
| 375 | test_basic_functionality() |
| 376 | test_gpu_optimizations() |
| 377 | test_different_generation_modes() |
| 378 | test_api_functions() |
| 379 | test_comprehensive_image_types() |
| 380 | test_memory_usage() |
| 381 | |
| 382 | print("=" * 60) |
| 383 | print("🎉 ALL TESTS COMPLETED SUCCESSFULLY!") |
| 384 | print("=" * 60) |
| 385 | |
| 386 | except Exception as e: |
| 387 | print(f"❌ Test failed with error: {e}") |
| 388 | import traceback |
| 389 | |
| 390 | traceback.print_exc() |
| 391 | sys.exit(1) |
| 392 | |
| 393 | |
| 394 | if __name__ == "__main__": |
no test coverage detected