aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/newlisp.rb
diff options
context:
space:
mode:
authorMike Naberezny2014-02-20 16:45:58 -0800
committerBrett Koonce2014-02-20 23:02:04 -0600
commitb1faa7ab9a5b399a2f07bd45b0bdd530625c23fb (patch)
tree41b157e3820d0dbce5f4a1c7708bd7ba5f24e837 /Library/Formula/newlisp.rb
parent0cf57d4a005f6013b27c0047be4e5cd6050a8d85 (diff)
downloadhomebrew-b1faa7ab9a5b399a2f07bd45b0bdd530625c23fb.tar.bz2
newlisp: add test
Closes #26874. Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library/Formula/newlisp.rb')
-rw-r--r--Library/Formula/newlisp.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/newlisp.rb b/Library/Formula/newlisp.rb
index 84b67653d..39e93e470 100644
--- a/Library/Formula/newlisp.rb
+++ b/Library/Formula/newlisp.rb
@@ -31,6 +31,18 @@ class Newlisp < Formula
will need to be be pointed to your newlisp executable.
EOS
end
+
+ test do
+ path = testpath/"test.lsp"
+ path.write <<-EOS
+ (println "hello")
+ (exit 0)
+ EOS
+
+ output = `#{bin}/newlisp #{path}`
+ assert_equal "hello\n", output
+ assert_equal 0, $?.exitstatus
+ end
end
__END__