From 545b9014ae8abd9518a168db198cc40b25fca151 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Tue, 27 May 2014 12:17:59 -0700 Subject: picolisp: add test Closes #29629. Signed-off-by: Jack Nagel --- Library/Formula/picolisp.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library') diff --git a/Library/Formula/picolisp.rb b/Library/Formula/picolisp.rb index 279ef84c0..bcb04278b 100644 --- a/Library/Formula/picolisp.rb +++ b/Library/Formula/picolisp.rb @@ -10,4 +10,13 @@ class Picolisp < Formula system "make", "-C", src_dir bin.install "bin/picolisp" end + + test do + path = testpath/"hello.lisp" + path.write '(prinl "Hello world") (bye)' + + out = `#{bin}/picolisp #{path}` + assert_equal "Hello world\n", out + assert_equal 0, $?.exitstatus + end end -- cgit v1.2.3