diff options
| -rw-r--r-- | Library/Formula/ragel.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/ragel.rb b/Library/Formula/ragel.rb index 8764050a4..e79f1798b 100644 --- a/Library/Formula/ragel.rb +++ b/Library/Formula/ragel.rb @@ -15,4 +15,21 @@ class Ragel < Formula system "make", "install" doc.install resource("pdf") end + + test do + testfile = testpath/"rubytest.rl" + testfile.write <<-EOS.undent + %%{ + machine homebrew_test; + main := ( 'h' @ { puts "homebrew" } + | 't' @ { puts "test" } + )*; + }%% + data = 'ht' + %% write data; + %% write init; + %% write exec; + EOS + system "ragel", "-Rs", testfile + end end |
