check_mysql.t 374 B

1234567891011121314151617181920212223
  1. #! /usr/bin/perl -w
  2. use strict;
  3. use Cache;
  4. use Test;
  5. use vars qw($tests);
  6. BEGIN {$tests = 1; plan tests => $tests}
  7. exit(0) unless (-x "./check_mysql");
  8. my $null = '';
  9. my $cmd;
  10. my $str;
  11. my $t;
  12. $cmd = "./check_mysql -H 127.0.0.1 -P 3306";
  13. $str = `$cmd`;
  14. $t += ok $?>>8,0;
  15. print "Test was: $cmd\n" if ($?);
  16. exit(0) if defined($Test::Harness::VERSION);
  17. exit($tests - $t);