diff options
| author | Jaime Marquínez Ferrándiz | 2014-05-05 14:56:41 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-05 20:27:58 -0700 |
| commit | bdae7e5261db9b2f22328f4ac391808d625d12a4 (patch) | |
| tree | e4d037f5c39db841f3323ede95fbb429defa2fd4 /Library/Formula/gnuplot.rb | |
| parent | a958d5b4c4b48b983278d11c91ac47eb6476df37 (diff) | |
| download | homebrew-bdae7e5261db9b2f22328f4ac391808d625d12a4.tar.bz2 | |
gnuplot: Run some commands in the test
Closes #28969.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/gnuplot.rb')
| -rw-r--r-- | Library/Formula/gnuplot.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
