diff --git a/Formula/apachetop.rb b/Formula/apachetop.rb index 655e3ceb85c49..e99f1b63de569 100644 --- a/Formula/apachetop.rb +++ b/Formula/apachetop.rb @@ -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__