aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2014-12-12 08:47:08 +0100
committerMike McQuaid2014-12-12 09:50:32 +0000
commit2445a48ccd6ada784349d49c10a29b28c8d354be (patch)
tree70527b5c3dbecf840699754c9a467365bcba40b5 /Library/Formula
parent3487c1280a7c53b540be8fc515e5b56230bc7075 (diff)
downloadhomebrew-2445a48ccd6ada784349d49c10a29b28c8d354be.tar.bz2
abnfgen: add test.
Closes #34912. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/abnfgen.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/abnfgen.rb b/Library/Formula/abnfgen.rb
index 34126ff08..f1b76ec3d 100644
--- a/Library/Formula/abnfgen.rb
+++ b/Library/Formula/abnfgen.rb
@@ -11,4 +11,9 @@ class Abnfgen < Formula
"--mandir=#{man}"
system "make install"
end
+
+ test do
+ (testpath/"grammar").write %(ring = 1*12("ding" SP) "dong" CRLF)
+ system "#{bin}/abnfgen", (testpath/"grammar")
+ end
end