root/test/t/000_prereq.t

Revision 239594a76cc5a52d016357dde39705aee39bd2e4, 434 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

fix this to run on my Mac again

  • Property mode set to 100644
Line 
1 use Test::More tests => 8;
2 my @progs = qw/pg_ctl initdb psql rm/;
3
4 use strict;
5
6 use_ok('testconfig');
7 use_ok('apiclient');
8 use_ok('stomp');
9
10 foreach my $prog (@progs) {
11   my $found = 0;
12   foreach my $dir (split /:/, $ENV{PATH}) {
13     $found = $dir if -x "$dir/$prog";
14   }
15   BAIL_OUT("$prog is required, but not in your path") unless($found);
16   ok($found, "found $prog ($found)");
17 }
18 mkdir "logs";
19 ok(-d "logs", "logs dir exists");
20
21 1;
Note: See TracBrowser for help on using the browser.