mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 08:15:29 +00:00
FredApps asked on #388 for tests of two links for one asset, a link to another host, a failing commit, a newer installed copy and a running app. The failing commit and the newer copy were already tested on main (portable.rs, install_refuses_to_downgrade_when_target_release_is_older). - release.rs: a_download_link_must_be_its_releases_own also refuses the right path on another host, over http, and behind look-alike hosts. New two_links_for_one_asset_keep_only_the_releases_own. - install.rs: install_refuses_links_off_the_releases_own_before_downloading covers other hosts and a SHA256SUMS.txt linked elsewhere (the sums_asset branch of check_download_link). install_refuses_while_the_installed_copy_is_running uses the test binary on Windows and process.rs's RunningProbe on Unix, where pgrep -f matches the command line. a_download_that_fails_its_checksum_replaces_nothing: the installed copy keeps its bytes, the install never starts, nothing is committed or kept. - process.rs: RunningProbe is pub(crate) so install.rs's test can use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>