Fix various build problems with the test suite

The cmd/command-t test requires libroken and was misspelled in the
TESTS file.  Multiple tests require LD_LIBRARY_PATH to be set to find
libafsroken if it hasn't been installed, so set it when running
runtests via make check.  (Note that this means runtests -o will not
work properly unless the user also sets LD_LIBRARY_PATH.)

Change-Id: Ib64f0505b3b75db33adb6c7b6452dcaac0b05dbc
Reviewed-on: http://gerrit.openafs.org/4594
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Russ Allbery 2011-04-28 16:10:23 -07:00 committed by Derrick Brashear
parent dc3da06772
commit e88e369c92
3 changed files with 5 additions and 4 deletions

View File

@ -19,6 +19,7 @@ runtests: runtests.o
check test tests: runtests
@for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
LD_LIBRARY_PATH=@TOP_OBJDIR@/lib \
./runtests $(abs_top_srcdir)/tests/TESTS
install:

View File

@ -4,5 +4,5 @@ util/queues
auth/keys
auth/superuser
auth/authcon
cmd/commands
cmd/command
ptserver/pt_util

View File

@ -9,7 +9,7 @@ MODULE_CFLAGS = -I$(srcdir)/..
LIBS = ../tap/libtap.a \
$(abs_top_builddir)/lib/libcmd.a \
$(abs_top_builddir)/lib/libcom_err.a \
$(abs_top_builddir)/lib/libafscom_err.a \
$(abs_top_builddir)/lib/util.a
tests = command-t
@ -17,7 +17,7 @@ tests = command-t
all check test tests: $(tests)
command-t: command-t.o $(LIBS)
$(AFS_LDRULE) command-t.o $(LIBS) $(XLIBS)
$(AFS_LDRULE) command-t.o $(LIBS) $(LIB_roken) $(XLIBS)
install: