From d40ea62894dd6706d62f340378bc3357000e9015 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 1 Dec 2007 00:12:10 +0000 Subject: [PATCH] avoid running this test unless we have WRE installed --- t/Spectre/Workflow.t | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/t/Spectre/Workflow.t b/t/Spectre/Workflow.t index 4d34c618a..61a3c4fad 100755 --- a/t/Spectre/Workflow.t +++ b/t/Spectre/Workflow.t @@ -12,24 +12,35 @@ use FindBin; use strict; use warnings; + +use Test::More; + +if (!-e "$FindBin::Bin/../../../wre/lib") { + plan skip_all => 'No WRE libraries available'; +} +else { + plan tests => 19; + eval <<'EOEVAL'; ##Delay compiling since it causes the test die + use WRE::Config; + use WRE::Modperl; + use WRE::Modproxy; + use WRE::Spectre; +EOEVAL +} + use lib "$FindBin::Bin/../lib", "$FindBin::Bin/../../../wre/lib"; + use WebGUI::Test; use WebGUI::Session; use Spectre::Admin; use WebGUI::Config; use WebGUI::Workflow::Cron; use WebGUI::Workflow::Instance; -use WRE::Config; -use WRE::Modperl; -use WRE::Modproxy; -use WRE::Spectre; use POE::Component::IKC::ClientLite; use JSON; use Config::JSON; -use Test::More tests => 19; # increment this value for each test you create - $|++; my $session = WebGUI::Test->session;