[LTP] Test library API changes

Cyril Hrubis chrubis@suse.cz
Tue Apr 5 16:16:28 CEST 2016


Hi!
> > Or do you have a better idea how to proceed?
> 
> I don't think I have. I was thinking about macros to generate
> both prototypes, but that would probably get messy soon.
> 
> One related idea I had for more "visual separation", was to
> create subdir, e.g. include/oldlib and move all oldlib exclusive
> headers there. And then add  that dir to include dirs in CFLAGS,
> so nothing changes for tests.
> 
> Then (if I get the big picture), we could tell: "if you're looking
> for a function for your newlib test, just avoid _fn headers
> and anything in oldlib subdir". And same would apply for adding new
> functions to newlib.
> 
> What I image people do to discover these functions is search in ltp/include,
> and I'm guessing they'll get up to 3 hits: old header (which may or may not
> have old_ in name), _fn header and tst_ header.
> 
> This is what made me think if we can somehow steer them to look
> at newlib headers first.

I've added a patch on the top of the one that adds the new library that
moves the old headers to include/old. Now only config.h, tst_* headers
and safe_*fn.h are directly in include.

The resource files are documented in the test-writing-guidelines as well
and the patchset is rebased on the top of the latest ltp git.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list