Import C TAP Harness 1.2 as a testing harness
[openafs.git] / tests / Makefile.in
diff --git a/tests/Makefile.in b/tests/Makefile.in
new file mode 100644 (file)
index 0000000..66d4ad2
--- /dev/null
@@ -0,0 +1,28 @@
+# 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) $@
+
+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) $@
+       $(RM) -f *.o core runtests