[LTP] [PATCH v2 0/4] Makefile: Add C header with generated LTP version

Petr Vorel pvorel@suse.cz
Wed Jul 19 13:00:47 CEST 2023


Hi,

changes v1->v2:
* proper make solution from Cyril, slightly modified (first commit)
ltp-version.h gets regenerated only when make requires to run in lib/,
but I'm ok with that.
* .gitignore cleanup (last commit)

I wonder how about shell API? Do we want to create tst_version binary in
testcases/lib/ ?

Kind regards,
Petr

Cyril Hrubis (1):
  Makefile: Add C header with generated LTP version

Petr Vorel (3):
  lib/C-API: Add option -V to print LTP version
  lib/C-API: Print LTP version at test start
  lib: Move gitignore entries to their directory

 .gitignore           | 18 ------------------
 lib/.gitignore       |  3 +++
 lib/Makefile         | 13 +++++++++++++
 lib/gen_version.sh   | 16 ++++++++++++++++
 lib/tests/.gitignore | 17 +++++++++++++++++
 lib/tst_test.c       |  8 ++++++++
 6 files changed, 57 insertions(+), 18 deletions(-)
 create mode 100644 lib/.gitignore
 create mode 100755 lib/gen_version.sh
 create mode 100644 lib/tests/.gitignore

-- 
2.40.1



More information about the ltp mailing list