Files
lightcraft/packaging/nightly-tests.py
T
Dylan M. Taylor ea033fbe1c packaging(linux): support co-installable nightly packages (#4723)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

SonarCloud coverage shard fails on pre-existing teardown crashes that also fail on main (tests::scan_probes::a_browse_through_a_link_and_dot_dot_reads_the_folder_the_system_names and tests::lifecycle_037::a_widget_gesture_cancels_if_its_target_moves_between_resolution_and_the_press, the GPU warm-up thread at process exit), fixed by #4697; reported to the LightCraft owner.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-25 01:43:25 -06:00

31 lines
1.2 KiB
Python
Executable File

#!/usr/bin/env python3
"""Run the synthetic nightly packaging suites together; no app build, signing or network.
The Linux archive and caller contract suite is packaging/nightly-release-tests.py; the macOS
scripts run here on any POSIX host against generated fixtures and stand-in Apple tools. The Windows
suites (packaging/windows/nightly-*-tests.ps1) need pwsh and run in their own job.
"""
import importlib.util
from pathlib import Path
import unittest
def main() -> int:
here = Path(__file__).resolve().parent
suite = unittest.TestSuite()
for name, relative in (
("light_icon_suite", "nightly-icons-tests.py"),
("light_plist_suite", "macos/nightly_plist_tests.py"),
("light_release_dispatch_suite", "nightly-release-tests.py"),
("light_mac_sign_suite", "macos/nightly_sign_tests.py"),
):
spec = importlib.util.spec_from_file_location(name, here / relative)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
return 0 if unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() else 1
if __name__ == "__main__":
raise SystemExit(main())