2011-10-23 21:21:39 +01:00
|
|
|
# Build rules for the OpenAFS RX test suite.
|
|
|
|
|
|
|
|
srcdir=@srcdir@
|
|
|
|
abs_top_builddir=@abs_top_builddir@
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
|
tests: Fix most tests for objdir builds
Fix a few miscellaneous issues with building and running our tests in
objdir builds:
- Our C tests use -I$(srcdir)/../.. in the CFLAGS, so we can #include
<tests/tap/basic.h>. However, basic.h actually gets copied from
src/external/c-tap-harness/tests/tap/ to tests/tap/ during the
build, and so basic.h is available in the objdir, not srcdir. For
objdir builds, this causes building the tests to fail with failing
to find basic.h. Fix this to use TOP_OBJDIR as the include path
instead.
- Our 'make check' in tests/ tries to run ./libwrap; but our cwd will
be in the objdir for objdir builds, and libwrap is a script in our
srcdir. Fix this to run libwrap from the srcdir path.
- In tests/opr/softsig-t, it tries to find the 'softsig-helper' binary
in the same dir as 'softsig-t'. However, softsig-t is just a script
in the srcdir, but softsig-helper is a binary built in the objdir.
Fix this to use the BUILD env var provided by the tests wrapper, by
default.
Change-Id: Iff642613bfc88d0d7e348660dc62f59e6fa8af75
Reviewed-on: https://gerrit.openafs.org/13939
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
2019-11-12 02:34:07 +00:00
|
|
|
MODULE_CFLAGS = -I$(TOP_OBJDIR)
|
2011-10-23 21:21:39 +01:00
|
|
|
|
|
|
|
LIBS = ../tap/libtap.a \
|
2012-05-24 11:08:48 +01:00
|
|
|
$(abs_top_builddir)/src/rx/liboafs_rx.la
|
2011-10-23 21:21:39 +01:00
|
|
|
|
|
|
|
tests = event-t
|
|
|
|
|
|
|
|
all check test tests: $(tests)
|
|
|
|
|
|
|
|
event-t: event-t.o $(LIBS)
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_LDRULE_static) event-t.o $(LIBS) $(LIB_roken) $(XLIBS)
|
2011-10-23 21:21:39 +01:00
|
|
|
install:
|
|
|
|
|
|
|
|
clean distclean:
|
Clean up our cleaning
'make clean' and 'make maintainer-clean' still leave around a fair
number of droppings, prior to this commit.
We were not descending into the 'tests' top-level directory while
cleaning. Furthermore, tests/opr/Makefile needed $(LT_CLEAN), and
tests/rx/Makefile needed to spell it correctly.
The libtoolization places a lot of files to be removed in the
'pristine' target.
The processing used to implement the =include directive in the pod
sources for the man pages leaves around the non-.in versions of
files; we should clean that up in the 'pristine' target as well.
The 'pristine' target should likewise remove the man pages which
are generated from the pod files.
Additionally, the documentation build uses a Doxyfile which is
output by configure; that should be removed (if present) by the
'distclean' target.
When hcrypto was converted to libtool, the use of ${OBJECTS} in
the clean target was missed, so we were leaving around most of the
actual object files -- $(LT_CLEAN) does not handle this for us.
Change the rule to remove *.o as is done elsewhere.
The conversion of libafsrpc to libtool added a convenience library
libafsrpc_sys.la, and changed how syscall.o was generated on
most architectures, to be the result of compiling an empty .c file
(instead of just an empty .o file). This introduced a new
intermediate file, syscall.c, which must be cleaned up.
tvolser was only listing volserver and not vos in its list of
executables to remove while cleaning.
The conversion of venus/test to libtool was not done quite right.
Makefile.libtool and the .lo suffix are only needed when libtool
is being used to link *libraries*; just Makefile.pthread suffices
when libtool is being used to link executables. As such, remove
the inclusion of Makefile.libtool, and change the .lo targets back
to regular .o ones, and add back *.o to the list of files to remove
in the 'clean' target (it was needed there even without the
other changes to that Makefile).
Change-Id: Ifbc3eee4ad2dce54df991301bc5edd11eb29a24a
Reviewed-on: http://gerrit.openafs.org/11532
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
2014-10-08 21:51:33 +01:00
|
|
|
$(LT_CLEAN)
|
2011-10-23 21:21:39 +01:00
|
|
|
$(RM) -f $(tests) *.o core
|