2011-05-31 09:30:41 +01:00
|
|
|
|
|
|
|
srcdir=@srcdir@
|
|
|
|
abs_top_builddir=@abs_top_builddir@
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
|
2020-07-01 20:21:35 +01:00
|
|
|
BINS = vos-t
|
2011-05-31 09:30:41 +01:00
|
|
|
|
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) -I$(srcdir)/../common/
|
2011-05-31 09:30:41 +01:00
|
|
|
|
2020-07-01 20:21:35 +01:00
|
|
|
all check test tests: $(BINS)
|
2011-05-31 09:30:41 +01:00
|
|
|
|
|
|
|
MODULE_LIBS = ../tap/libtap.a \
|
2012-09-16 17:48:08 +01:00
|
|
|
$(abs_top_builddir)/src/vlserver/liboafs_vldb.la \
|
2011-05-31 09:30:41 +01:00
|
|
|
$(XLIBS)
|
|
|
|
|
2012-09-23 02:07:51 +01:00
|
|
|
vos-t: vos-t.o ../common/config.o ../common/servers.o ../common/ubik.o \
|
2019-12-31 18:04:48 +00:00
|
|
|
../common/network.o ../common/misc.o
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_LDRULE_static) vos-t.o ../common/config.o ../common/servers.o \
|
2019-12-31 18:04:48 +00:00
|
|
|
../common/ubik.o ../common/network.o ../common/misc.o \
|
|
|
|
$(MODULE_LIBS)
|
2011-05-31 09:30:41 +01:00
|
|
|
|
|
|
|
clean:
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_CLEAN)
|
2020-07-01 20:21:35 +01:00
|
|
|
rm -f *.o $(BINS)
|