aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-02 00:14:30 +0800
committerMike McQuaid2015-01-01 16:49:26 +0000
commit25c24c7ea8c0e363d699f9ab26e4e2043ebabe7e (patch)
treed7fda997e31cb19027617c2a0a003530e40e1a30 /Library
parentbd1896dbde763b9cb3ebf7420aaecf47c4b01988 (diff)
downloadhomebrew-25c24c7ea8c0e363d699f9ab26e4e2043ebabe7e.tar.bz2
debianutils: add test
Closes #35423. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/debianutils.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/Library/Formula/debianutils.rb b/Library/Formula/debianutils.rb
index 817e0c21d..0e6a5694a 100644
--- a/Library/Formula/debianutils.rb
+++ b/Library/Formula/debianutils.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Debianutils < Formula
- homepage 'http://anonscm.debian.org/gitweb/?p=users/clint/debianutils.git'
- url 'http://ftp.de.debian.org/debian/pool/main/d/debianutils/debianutils_4.4.tar.gz'
- sha1 '019b969ab698c83117254b50fc8f469f10a5d8d6'
+ homepage "http://anonscm.debian.org/gitweb/?p=users/clint/debianutils.git"
+ url "http://ftp.de.debian.org/debian/pool/main/d/debianutils/debianutils_4.4.tar.gz"
+ sha1 "019b969ab698c83117254b50fc8f469f10a5d8d6"
def install
system "./configure", "--disable-dependency-tracking",
@@ -11,8 +9,12 @@ class Debianutils < Formula
system "make"
# some commands are Debian Linux specific and we don't want them, so install specific tools
- bin.install 'run-parts', 'ischroot', 'tempfile'
- man1.install 'ischroot.1', 'tempfile.1'
- man8.install 'run-parts.8'
+ bin.install "run-parts", "ischroot", "tempfile"
+ man1.install "ischroot.1", "tempfile.1"
+ man8.install "run-parts.8"
+ end
+
+ test do
+ assert File.exist?(shell_output("#{bin}/tempfile -d #{Dir.pwd}").strip)
end
end