From ba6070398b7b499db3ed7f35c2764032768a90a1 Mon Sep 17 00:00:00 2001 From: mikit Date: Mon, 19 Mar 2018 07:14:48 +0900 Subject: [PATCH] sloccount: add test --- Formula/sloccount.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/sloccount.rb b/Formula/sloccount.rb index 313813b5e0..9f2a776a88 100644 --- a/Formula/sloccount.rb +++ b/Formula/sloccount.rb @@ -23,6 +23,10 @@ class Sloccount < Formula system "make", "install", "PREFIX=#{prefix}" (bin+"erlang_count").write "#!/bin/sh\ngeneric_count '%' $@" end + + test do + system "#{bin}/sloccount", "--version" + end end __END__