in reply to C test suite management with perl
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: C test suite management with perl
by QuillMeantTen (Friar) on Sep 09, 2015 at 17:58 UTC | |
by jeffa (Bishop) on Sep 09, 2015 at 18:15 UTC | |
by QuillMeantTen (Friar) on Sep 09, 2015 at 18:34 UTC | |
by QuillMeantTen (Friar) on Sep 10, 2015 at 10:36 UTC |