From 46123fc3087e177351e9c1a8b4b8738362f567e3 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 20 Oct 2013 00:23:03 -0700 Subject: [PATCH] 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;