openafs/tests/opr
Andrew Deason 405001be72 tests: Introduce libafstest_common
Currently, a few tests use the code in tests/common/ by linking
individual object files in there in addition to the test code (e.g.
linking ../common/config.o along with superuser-t.o).

This convention makes it very obnoxious to move code around in
tests/common/, since any users need to update their link lines. It
also makes it difficult for code in tests/common/ to make use of
functions in other tests/common/ files.

To fix this, just build all of the objects in tests/common/ into a
convenience library, called libafstest_common, and link the relevant
tests against that. Link a few requisite libraries (roken, rfc3961) in
libafstest_common, so each individual test doesn't need to link
against them.

Also link the TAP library itself in libafstest_common, so tests don't
have to explicitly link against it separately. To do this, convert it
into a libtool library, libafstest_tap.la.

Change-Id: I9c031c164efee20201336edcbfaff429e1d231b7
Reviewed-on: https://gerrit.openafs.org/14318
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
2021-08-07 20:38:05 -04:00
..
.gitignore tests: Add cache-t to .gitignore in tests/opr 2020-03-20 15:56:54 -04:00
cache-t.c opr: Allow non-2^x for n_buckets in opr_cache_init 2020-04-10 09:55:35 -04:00
dict-t.c opr: Add dictionary implementation 2012-11-01 12:18:01 -07:00
fmt-t.c tests: Fix fmt-t.c warning 2014-11-05 08:39:25 -05:00
jhash-t.c opr: Make opr_jhash_opaque consistent with opr_jhash 2016-12-22 15:59:31 -05:00
Makefile.in tests: Introduce libafstest_common 2021-08-07 20:38:05 -04:00
queues-t.c opr: Don't confuse isLast and isEnd 2012-11-23 06:18:31 -08:00
rbtree-t.c
softsig-helper.c tests: fix signo to signame lookup in opr/softsig tests 2016-12-16 15:20:39 -05:00
softsig-t tests: Accommodate c-tap-harness 4.7 2020-08-20 22:36:56 -04:00
time-t.c tests/opr/time-t.c: Use labs instead of abs for long argument 2015-08-01 23:05:26 -04:00
uuid-t.c Make opr_uuid_toString return a status 2013-06-21 11:17:48 -07:00