mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
md5sha1sum: Add a test
Closes #25883. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
1 parent
5cba4511f3
commit
623750ae28
1 file changed
+9
@@ -14,4 +14,13 @@ class Md5sha1sum < Formula
|
||||
bin.install_symlink bin/'md5sum' => 'sha1sum'
|
||||
bin.install_symlink bin/'md5sum' => 'ripemd160sum'
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/'file.txt').write('This is a test file with a known checksum')
|
||||
(testpath/'file.txt.sha1').write <<-EOS.undent
|
||||
52623d47c33ad3fac30c4ca4775ca760b893b963 file.txt
|
||||
EOS
|
||||
system "#{bin}/sha1sum", '--check', 'file.txt.sha1'
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user