Hi,
While developing test scripts for Net::SSLeay, I've run into an problem where the legacy test.pl is forking off child processes to start server programs. Subsequent tests in the script then send input to those server programs and test the outputs to determine pass fail. You can probably already see the problem that happens when you split those tests in test.pl into individual t/*.t files.
The obvious way to follow this testing paradigm is to simply start and stop servers inside each test script, but that seems wasteful as ssl servers aren't the quickest servers to start up.
It would be nice if I could start the servers before starting any tests (or make starting the server successfully a test) then kill them after all tests complete.
Any advice on how to go about this problem? Maybe use 'system' to start the servers in a seperate shell and write the PIDs of the servers to a file so I can kill them later?
Thanks, Walter
smime.p7s
Description: S/MIME Cryptographic Signature