httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject running subtests
Date Thu, 30 Aug 2001 17:40:46 GMT
it is now possible to write .t tests in such a way that only selected
tests will be run.  the .t's simply need to switch from using 'ok ...'
to 'sok { ... }'.  where the argument to sok is a subroutine reference
who's return value will be passed to 'ok'.  if subtests are specified
only those will be run/passed to ok, the rest will be skipped.
so for example, you can now do this:

modules/env....1..5
ok 1 # skip skipping this subtest
ok 2 # skip skipping this subtest
set: EXPECT ->mod_env test environment variable<- ACTUAL ->mod_env test environment
variable<-
ok 3
ok 4 # skip skipping this subtest
unset: EXPECT ->(none)<- ACTUAL ->(none)<-
ok 5
ok, 3/5 skipped:  skipping this subtest
All tests successful.
Files=1, Tests=5,  2 wallclock secs ( 1.09 cusr +  0.07 csys =  1.16 CPU)


Mime
View raw message