# HG changeset patch # User Augie Fackler # Date 2016-08-25 05:25:52 # Node ID 00ca4f966ca6d4c22b3caffadf3caed9cd408a61 # Parent d5497eb1d768c02f614fe6cab577b18d62cd30e9 hghave: add a check for unzip(1) that understands symlinks unzip(1) from the FreeBSD base system does not understand symlinks, so test-archive-symlinks is busted. diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -573,3 +573,7 @@ def has_hypothesis(): return True except ImportError: return False + +@check("unziplinks", "unzip(1) understands and extracts symlinks") +def unzip_understands_symlinks(): + return matchoutput('unzip --help', br'Info-ZIP')