test harness

| | Comments (0)
I got the test harness working on MacPerl, except that it still doesn't quite work. The problem is that normally when you run a perl script, you run it under MPW. Then if that script calls out to system() or qx//, it runs under ToolServer. This causes a few small problems for us anyway in testing, because %ENV does not carry over to ToolServer (in my experience, anyway :-).

So anyway, when you run under the test harness, now you run the harness script under MPW, and when it calls each individual script, that runs under ToolServer. And if that test script calls out to system() or qx// ... it cannot call out to ToolServer since ToolServer is already being used. So it fails. D'oh!

Anyway, so I wrote an MPW script to run all the tests. Then I realized that some tests don't print "not ok" if a test fails, but instead just print nothing. And sometimes, "ok" is printed more than once for a test. So, I wrote a perl script to parse the results from the MPW script. :-)

Anyway, the result is below. I found one test that was falsely reported as succeeding (lib/dprof.t).

:lib:db-btree.t
:lib:db-hash.t
:lib:db-recno.t
:lib:dosglob.t
:lib:dprof.t
:lib:ftmp-mktemp.t
:lib:ftmp-posix.t
:lib:ftmp-security.t
:lib:ftmp-tempfile.t
:lib:ndbm.t
:lib:posix.t
:op:die_exit.t
:op:magic.t
:op:misc.t
:op:sprintf.t
:pragma:warnings.t
use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on July 8, 2001 5:37 AM.

Back to Perforce was the previous entry in this site.

GREAT CRIMINY JEHOSOPHAT is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.