lft: add test

We could do a nice network test here but it doesn't work on the CI, so for now
we have a bad version test instead.

Closes Homebrew/homebrew#45771.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2015-11-07 05:33:53 +00:00
parent 29ee88178a
commit 2a530b3866

View file

@ -12,7 +12,12 @@ class Lft < Formula
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/lft -v 2>&1")
end
end