gnuplot: Run some commands in the test

Closes Homebrew/homebrew#28969.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-05-05 14:56:41 +02:00 committed by Adam Vandenberg
parent 15f6c6196f
commit 07397af582

View file

@ -108,7 +108,12 @@ class Gnuplot < Formula
end end
test do 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 end
def caveats def caveats