Discussion:
gnulib-tool.py adds new files to project tests/ directory
Darshit Shah
2017-09-11 12:10:50 UTC
Permalink
Hi,

I was testing the gnulib-tool.py script in the Wget2 project and found
two new behaviors when compared to the old script:

1. It deleted and replaced the existing .gitignore files, but only in a
fresh checkout. I've already sent a patch that seems to fix this
behavior.

2. Some new files are being added to the 'tests/' directory of the
project. I don't see why these files are necessary there. The old
script did not add them either. The files added are:

_Noreturn.h
arg-nonnull.h
c++defs.h
dummy.c
unused-parameter.h
warn-on-use.h

Could someone please explain why these are now added to the project
directories?
--
Thanking You,
Darshit Shah
PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
Bruno Haible
2017-09-11 12:22:59 UTC
Permalink
Hi Darshit,
Post by Darshit Shah
2. Some new files are being added to the 'tests/' directory of the
project. I don't see why these files are necessary there. The old
_Noreturn.h
arg-nonnull.h
c++defs.h
dummy.c
unused-parameter.h
warn-on-use.h
This behaviour was fixed in gnulib-tool, but not yet in gnulib-tool.py:

2017-03-14 Bruno Haible <***@clisp.org>

gnulib-tool: Don't produce a tests directory with only snippet .h files.
* gnulib-tool (func_modules_transitive_closure_separately): If
testsrelated_modules ends up with no "real" modules, aside from
modules with applicability 'all', set it to empty.

It's among the list of past changes to gnulib-tool that I'll port to
gnulib-tool.py (still 26 to go).

Bruno

Loading...