[Lazarus] Running Unit tests for all projects

Marcos Douglas B. Santos md at delfire.net
Wed Jul 19 15:23:16 CEST 2017


On Wed, Jul 19, 2017 at 9:59 AM, Mattias Gaertner via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:
> On Wed, 19 Jul 2017 09:43:02 -0300
> "Marcos Douglas B. Santos via Lazarus" <lazarus at lists.lazarus-ide.org>
> wrote:
>
>>[...]
>> How do you get the compiler arguments for each project? Mabe using the
>> XML that Lazarus creates for each program?
>
> You can either compile each project using lazbuild, or you can fetch
> the options from the produced .compiled file (xml format).

OMG, that is it. I didn't think in that possibility.
Using lazbuild is better because it's smart enough to automatically
compiles required packages.

But I only use lazbuild to build the IDE. I've took a look in this
page http://wiki.lazarus.freepascal.org/lazbuild and I haven't found
an argument related to the project file (lpi or lpr).

Can I just do that?
(sorry, I'm not with my Lazarus environment now to test)
lazbuild [options] /path/myproject.lpi

Regards,
Marcos Douglas

PS.
This is really cool too "--build-mode" and will make my life easier. Thanks


More information about the Lazarus mailing list