Skip to content

Commit

Permalink
idutils: add test
Browse files Browse the repository at this point in the history
Closes Homebrew#37712.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
xu-cheng committed Mar 14, 2015
1 parent 5b29475 commit b27747f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Library/Formula/idutils.rb
@@ -1,15 +1,18 @@
require 'formula'

class Idutils < Formula
homepage 'http://www.gnu.org/s/idutils/'
url 'http://ftpmirror.gnu.org/idutils/idutils-4.6.tar.xz'
mirror 'http://ftp.gnu.org/gnu/idutils/idutils-4.6.tar.xz'
sha256 '8181f43a4fb62f6f0ccf3b84dbe9bec71ecabd6dfdcf49c6b5584521c888aac2'
homepage "https://www.gnu.org/s/idutils/"
url "http://ftpmirror.gnu.org/idutils/idutils-4.6.tar.xz"
mirror "https://ftp.gnu.org/gnu/idutils/idutils-4.6.tar.xz"
sha256 "8181f43a4fb62f6f0ccf3b84dbe9bec71ecabd6dfdcf49c6b5584521c888aac2"

conflicts_with 'coreutils', :because => 'both install `gid` and `gid.1`'
conflicts_with "coreutils", :because => "both install `gid` and `gid.1`"

def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
system "make", "install"
end

test do
system bin/"mkid", "/usr/include"
system bin/"lid", "FILE"
end
end

0 comments on commit b27747f

Please sign in to comment.