Skip to content

Commit

Permalink
colortail: add test
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#35393.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
xu-cheng authored and MikeMcQuaid committed Dec 31, 2014
1 parent 32d1037 commit 5b0e7c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/colortail.rb
Expand Up @@ -7,4 +7,9 @@ def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end

test do
(testpath/"test.txt").write("Hello\nWorld!\n")
assert_match /World!/, shell_output("#{bin}/colortail -n 1 test.txt")
end
end

0 comments on commit 5b0e7c1

Please sign in to comment.