Skip to content

Commit

Permalink
apachetop: add a test (#25769)
Browse files Browse the repository at this point in the history
  • Loading branch information
barthel authored and fxcoudert committed Mar 29, 2018
1 parent eaef79a commit effb03f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/apachetop.rb
Expand Up @@ -28,6 +28,11 @@ def install
"--with-logfile=/var/log/apache2/access_log"
system "make", "install"
end

test do
output = shell_output("#{bin}/apachetop -h 2>&1", 1)
assert_match "ApacheTop v#{version}", output
end
end

__END__
Expand Down

0 comments on commit effb03f

Please sign in to comment.