From bdae7e5261db9b2f22328f4ac391808d625d12a4 Mon Sep 17 00:00:00 2001 From: Jaime Marquínez Ferrándiz Date: Mon, 5 May 2014 14:56:41 +0200 Subject: gnuplot: Run some commands in the test Closes #28969. Signed-off-by: Adam Vandenberg --- Library/Formula/gnuplot.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library/Formula/gnuplot.rb') diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb index 2b10beb8e..efc9a340b 100644 --- a/Library/Formula/gnuplot.rb +++ b/Library/Formula/gnuplot.rb @@ -108,7 +108,12 @@ class Gnuplot < Formula end test do - system "#{bin}/gnuplot", "--version" + system "#{bin}/gnuplot", "-e", <<-EOS.undent + set terminal png; + set output "#{testpath}/image.png"; + plot sin(x); + EOS + assert (testpath/"image.png").exist? end def caveats -- cgit v1.2.3