Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-08-28 08:16:34

0001 import os
0002 import sys
0003 import subprocess
0004 
0005 DIR = os.path.dirname(os.path.abspath(__file__))
0006 
0007 failures = []
0008 
0009 for filename in os.listdir(DIR):
0010     if filename.startswith("test_") and filename.endswith(".py") and filename != "run_integration_tests.py":
0011         fullpath = os.path.join(DIR, filename)
0012         print(f"Running {filename}...")
0013         result = subprocess.run([sys.executable, fullpath])
0014         if result.returncode != 0:
0015             print(f"FAILED: {filename}")
0016             failures.append(filename)
0017         else:
0018             print(f"PASSED: {filename}")
0019         print("-" * 40)
0020 
0021 if failures:
0022     print("Some integration tests FAILED:", failures)
0023     sys.exit(1)
0024 else:
0025     print("All integration tests passed!")
0026     sys.exit(0)