2026-08-16 21:55:28 -03:00
|
|
|
"""Run the composable Hermes execution-safety build regressions."""
|
2026-08-16 19:57:54 -03:00
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
2026-08-16 21:55:28 -03:00
|
|
|
from hermes_decomposition_safety_regression import DecompositionSafetyTests
|
|
|
|
|
from hermes_run_safety_regression import ExactRunSafetyTests
|
2026-08-16 19:57:54 -03:00
|
|
|
|
2026-08-16 20:55:46 -03:00
|
|
|
|
2026-08-16 21:55:28 -03:00
|
|
|
def main() -> int:
|
|
|
|
|
"""Run both transaction domains and return a build-friendly status."""
|
|
|
|
|
loader = unittest.defaultTestLoader
|
|
|
|
|
suite = unittest.TestSuite(
|
|
|
|
|
(
|
|
|
|
|
loader.loadTestsFromTestCase(ExactRunSafetyTests),
|
|
|
|
|
loader.loadTestsFromTestCase(DecompositionSafetyTests),
|
2026-08-16 20:55:46 -03:00
|
|
|
)
|
2026-08-16 21:55:28 -03:00
|
|
|
)
|
|
|
|
|
result = unittest.TextTestRunner(verbosity=2).run(suite)
|
|
|
|
|
return 0 if result.wasSuccessful() else 1
|
2026-08-16 19:57:54 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2026-08-16 21:55:28 -03:00
|
|
|
raise SystemExit(main())
|