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

Cyril Hrubis chrubis@suse.cz
Fri Jul 14 08:46:37 CEST 2023


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


More information about the ltp mailing list