On Sun, 24 Jun 2001, brian moseley wrote:

>
> i'm using Apache-Test as reference for my (greatly
> simplified) wombat test harness. i can't figure out how you
> ensure that tests are run in a specific order, or even if
> you are. certainly you're not in the case where you build a
> list of tests using finddepth. have you addressed this issue
> at all?

> oh wait, i guess i could use a series of dependency targets
> in the Makefile:
>
> run_tests: test_1 test_2 test_3
>
> test_1:
>       $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) t/TEST dir1
>
> test_2:
>       $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) t/TEST dir2
>
> test_3:
>       $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) t/TEST dir3
>
> can anybody think of a better way to do it, other than using
> dir and file name prefixes? brainstorm time!

the only way to ensure identical order from run to run, across different
systems (and changes in file inodes ordering) is to explicitly list the
tests in the wanted order. otherwise it's up to the inodes order under
./t.

Since I mess with tests anyway now (see my other post from a few minutes
ago), do you want to add yet another mode 'sort'?

But, hey, look at the random mode I've just added. Why would you want to
ensure the same order in tests? That's not the way QA works :)


_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to