build-sys: split test cases in lib/ into their own files
authorFilipe Brandenburger <filbranden@google.com>
Sat, 2 May 2015 00:43:51 +0000 (17:43 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Sat, 2 May 2015 00:43:51 +0000 (17:43 -0700)
commitb56fd9d3586a08a75a7d9caa81171dcfb67bdb4b
treef73341fa09affd1e5885b740e7abd772f0f7a02a
parent04d96fe1361bd4afee449aa691da9c52d4f27a12
build-sys: split test cases in lib/ into their own files

In order to avoid compiling the same source files twice, with and
without the TEST_PROGRAM define.

Tested that the build still works and that `make distcheck` works as
expected.

Tested that the test_* programs in lib/ keep working. (Though they are
not really invoked by `make check` and in particular test_nsutils is
quite useless, test_fileutils also quite poor.)

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
lib/Makefile.am
lib/fileutils.c
lib/nsutils.c
lib/strutils.c
lib/test_fileutils.c [new file with mode: 0644]
lib/test_nsutils.c [new file with mode: 0644]
lib/test_strutils.c [new file with mode: 0644]