Stas Bekman wrote:
For that matter, why does t/TEST use TestRunPerl while t/SMOKE uses TestSmoke? I would've expected TestSmokePerl [no knowing yet the difference between the two].


Apache::TestRunPerl is a subclass of Apache::TestPerl, which overrides some method.

SMOKE generated by mod_perl/EU::MM does use Apache::TestSmokePerl. There must be something different about TestMB, I guess.



That's where I get confused. By default, nothing automatically generates a t/SMOKE file correct? One must first create a t/SMOKE.PL and call generate_script("t/SMOKE").

So According to http://perl.apache.org/docs/general/testing/testing.html#C_Apache__TestSmoke__Solution

The sample t/SMOKE.PL files is:

  #file:t/SMOKE.PL
  #---------------
  #!perl

  use strict;
  use warnings FATAL => 'all';

  use FindBin;
  use lib "$FindBin::Bin/../Apache-Test/lib";
  use lib "$FindBin::Bin/../lib";

  use Apache::TestSmoke ();

  Apache::TestSmoke->new(@ARGV)->run;


That uses TestSmoke, not TestSmokePerl [directly] like I would expect
That's what I currently have in my t/SMOKE.PL [sans FindBin stuffs].
I tried using a t/SMOKE.PL that used TestSmokePerl instead of TestSmoke. It wasn't pretty. :-)


However, t/TEST.PL at http://perl.apache.org/docs/general/testing/testing.html#Basic_Testing_Environment

  #file:t/TEST.PL
  #--------------
  #!perl

  use strict;
  use warnings FATAL => 'all';

  use lib qw(lib);

  use Apache::TestRunPerl ();

  Apache::TestRunPerl->new->run(@ARGV);


uses TestRunPerl, not TestRun as expected.
So, I'm still a little confused on the difference between TestSmoke and TestSmokePerl in the context of SMOKE.PL since it's the opposite name-wise of what happens in TEST.PL....if that makes any sense at all.

-=Chris

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to