abnfgen: add test.

Closes Homebrew/homebrew#34912.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2014-12-12 08:47:08 +01:00 committed by Mike McQuaid
parent 94755c6816
commit 6049c8b195

View file

@ -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