gnuplot: Run some commands in the test
Closes Homebrew/homebrew#28969. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
15f6c6196f
commit
07397af582
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue