mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
2e2494d6db
Add a modified version of src/util/test_ktime to the new test suite as an example of how to write a test program with the new harness. Change-Id: Ifbceff1905f9f0dd686c2a2d2edc2f8796e7918f Reviewed-on: http://gerrit.openafs.org/2063 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
31 lines
689 B
Makefile
31 lines
689 B
Makefile
# Build rules for the OpenAFS test suite.
|
|
|
|
srcdir=@srcdir@
|
|
abs_top_srcdir=@abs_top_srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
RUNTESTS_CPPFLAGS = -DSOURCE='"$(abs_top_srcdir)/tests"' \
|
|
-DBUILD='"$(abs_top_builddir)/tests"'
|
|
|
|
all: runtests
|
|
cd tap && $(MAKE) $@
|
|
cd util && $(MAKE) $@
|
|
|
|
runtests.o: $(srcdir)/runtests.c
|
|
$(CCOBJ) $(CFLAGS) $(RUNTESTS_CPPFLAGS) -c $(srcdir)/runtests.c
|
|
|
|
runtests: runtests.o
|
|
$(CC) $(LDFLAGS) -o runtests runtests.o
|
|
|
|
check test tests: runtests
|
|
cd tap && $(MAKE) $@
|
|
./runtests $(abs_top_srcdir)/tests/TESTS
|
|
|
|
install:
|
|
|
|
clean distclean:
|
|
cd tap && $(MAKE) $@
|
|
cd util && $(MAKE) $@
|
|
$(RM) -f *.o core runtests
|