[LTP] [RFC PATCH 1/3] Makefile: Add C header with generated LTP version

Li Wang liwang@redhat.com
Fri Jul 14 11:25:18 CEST 2023


Ah, I see, thank you both.

On Fri, Jul 14, 2023 at 2:45 PM Cyril Hrubis <chrubis@suse.cz> wrote:

> Hi!
> > So why not use the script to append that one line in tst_test.h directly?
>
> That wouldn't play nice with development, you would have to make sure
> not to accidentally commit the line, which would happen way to often.
>
> > The ltp-version.h looks quite redundant and we could even put this script
> > into build.sh together, IMHO.
>
> The end goal here is to have the LTP version in the test output
> regardless where it came from (tarball, git) and how it was compiled
> (build.sh, cd testcases/kernel/ && make, ...). The only way how to do
> this is to refresh the version on each make and build it from inside the
> library.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
>

-- 
Regards,
Li Wang


More information about the ltp mailing list