test .gz man page

This commit is contained in:
xxyzz 2021-04-06 16:52:56 +08:00
parent 06d655bf50
commit 3c18e98432
No known key found for this signature in database
GPG Key ID: F796163E6DCFEE9D
3 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,8 @@ describe Cask::Artifact::Manpage, :cask do
let(:source_path) { cask.staged_path.join("manpage.1") }
let(:target_path) { cask.config.manpagedir.join("man1/manpage.1") }
let(:gz_source_path) { cask.staged_path.join("gzpage.1.gz") }
let(:gz_target_path) { cask.config.manpagedir.join("man1/gzpage.1.gz") }
before do
InstallHelper.install_without_artifacts(cask)
@ -35,6 +37,7 @@ describe Cask::Artifact::Manpage, :cask do
install_phase.call
expect(File).to be_identical target_path, source_path
expect(File).to be_identical gz_target_path, gz_source_path
end
end
end

View File

@ -1,9 +1,10 @@
cask "with-autodetected-manpage-section" do
version "1.2.3"
sha256 "68b7e71a2ca7585b004f52652749589941e3029ff0884e8aa3b099594e0282c0"
sha256 "1f078d5fbbaf44b05d0389b14a15f6704e0e5f8f663bc38153a4d685e38baad5"
url "file://#{TEST_FIXTURE_DIR}/cask/AppWithManpage.zip"
homepage "https://brew.sh/with-autodetected-manpage-section"
manpage "manpage.1"
manpage "gzpage.1.gz"
end