Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Test::More with suexec

Reply
Thread Tools

Test::More with suexec

 
 
Nene
Guest
Posts: n/a
 
      09-11-2012
I'm trying to create a test with Test::More.

The command I"m issuing in the perl script is /usr/sbin/suexec -V, which will output:

-D AP_DOC_ROOT="/home"
-D AP_GID_MIN=500
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec_log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="Sites/default/htdocs"

But my test is not working:

#!/usr/bin/perl
use warnings;
use strict;

use Test::More 'no_plan';

like(`/usr/sbin/suexec -V`, qr/apache/, "suexec is configured");



I"m getting:

not ok 1 - suexec is configured
# Failed test 'suexec is configured'
# at ./x.t line 6.
# ''
# doesn't match '(?-xism:apache)'
1..1
# Looks like you failed 1 test of 1.

Does anybody have a clue, I'm thinking it's the way suexec -V outputs is the culprit?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments