mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
40d6644264
Currently, several of our tests contain logic to locate files (via srcdir or objdir), based on the C_TAP_SOURCE/BUILD environment variables. This logic is duplicated in several places, so consolidate the code into a couple of new functions: afstest_src_path and afstest_obj_path. Update all callers to use these new functions. Change-Id: I67a5e5d7f8fd7a1edb55a45e52d877ac41f9a2ea Reviewed-on: https://gerrit.openafs.org/14319 Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: BuildBot <buildbot@rampaginggeek.com>
27 lines
688 B
Makefile
27 lines
688 B
Makefile
# Build rules for the OpenAFS cmd test suite.
|
|
|
|
srcdir=@srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
MODULE_CFLAGS = -I$(TOP_OBJDIR) -I$(srcdir)/../common/
|
|
|
|
LIBS = $(abs_top_builddir)/tests/common/libafstest_common.la \
|
|
$(abs_top_builddir)/src/cmd/liboafs_cmd.la \
|
|
$(abs_top_builddir)/src/comerr/liboafs_comerr.la \
|
|
$(abs_top_builddir)/src/opr/liboafs_opr.la
|
|
|
|
BINS = command-t
|
|
|
|
all check test tests: $(BINS)
|
|
|
|
command-t: command-t.o $(LIBS)
|
|
$(LT_LDRULE_static) command-t.o $(LIBS) $(LIB_roken) $(XLIBS)
|
|
|
|
install:
|
|
|
|
clean distclean:
|
|
$(LT_CLEAN)
|
|
$(RM) -f $(BINS) *.o core
|