Why not just use prove? If you just want to run your tests, and you don' t care about the order they are run in (and you should not to take advantage of forked parallelization) then prove will handle pretty much everything your run_tests.pl script does.
I put all my tests into a directory named t/ inside the project directory and run
from the project directory orprove -rlj6
if i want to feed the results to a CI server like Jenkins, so it can build pretty graphs for me.prove -rlj6 --formatter=TAP::Formatter::JUnit --timer t/| tee junit.xm +l
If you want to build an executable then perhaps you can leverage Makefile.pl instead of rolling your own wheel from complete scratch. I recommend Module::Starter to start any and all projects. Once you have a proper Makefile.pl, then you can use the shell to replace build.pl
If you need more control, then i suggest starting with a foundation like App::Prove.#!/bin/sh perl Makefile.PL make make test # do something with newly created files make veryclean
Hope this helps, there are many branches to hit when falling down this tree. :)
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: C test suite management with perl
by jeffa
in thread C test suite management with perl
by QuillMeantTen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |