[feedgnuplot] 41/42: main test script gives up if gnuplot isn't available
Dima Kogan
dkogan-guest at alioth.debian.org
Sun Oct 20 08:04:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
dkogan-guest pushed a commit to tag v1.25
in repository feedgnuplot.
commit 46123fc3087e177351e9c1a8b4b8738362f567e3
Author: Dima Kogan <dima at secretsauce.net>
Date: Sun Oct 20 00:23:03 2013 -0700
main test script gives up if gnuplot isn't available
---
t/plots.t | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/t/plots.t b/t/plots.t
index f1aa591..98e7d5e 100644
--- a/t/plots.t
+++ b/t/plots.t
@@ -13,6 +13,12 @@ BEGIN {
print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
exit(0);
}
+
+ unless( open( my $pipe, '|-', 'gnuplot' ))
+ {
+ print("1..0 # Skip: gnuplot not installed. This is required for feedgnuplot to be useful\n");
+ exit(0);
+ }
}
use Test::More tests => 52;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git
More information about the debian-science-commits
mailing list