From: Andrew Tridgell Date: Sat, 28 Apr 2007 08:57:58 +0000 (+0200) Subject: added make test and make valgrindtest targets X-Git-Tag: tevent-0.9.20~348^2~2822 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76381c4493b6273fa1aa3ea6f5277f7471d42d7e;p=thirdparty%2Fsamba.git added make test and make valgrindtest targets (This used to be ctdb commit b69fb43643993ee5aaabf8711bb874f95d468f35) --- diff --git a/ctdb/Makefile.in b/ctdb/Makefile.in index 7837ff1f910..a80908c638c 100644 --- a/ctdb/Makefile.in +++ b/ctdb/Makefile.in @@ -105,12 +105,18 @@ distclean: clean rm -f config.log config.status config.cache config.h rm -f Makefile -install: +install: all mkdir -p $(bindir) mkdir -p $(includedir) cp $(BINS) $(bindir) cp $(srcdir)/include/ctdb.h $(includedir) +test: + tests/run_tests.sh + +valgrindtest: + VALGRIND="valgrind -q --trace-children=yes" tests/run_tests.sh + realdistclean: distclean rm -f configure config.h.in diff --git a/ctdb/lib/replace/test/os2_delete.c b/ctdb/lib/replace/tests/os2_delete.c similarity index 100% rename from ctdb/lib/replace/test/os2_delete.c rename to ctdb/lib/replace/tests/os2_delete.c diff --git a/ctdb/lib/replace/test/shared_mmap.c b/ctdb/lib/replace/tests/shared_mmap.c similarity index 100% rename from ctdb/lib/replace/test/shared_mmap.c rename to ctdb/lib/replace/tests/shared_mmap.c diff --git a/ctdb/lib/replace/test/testsuite.c b/ctdb/lib/replace/tests/testsuite.c similarity index 100% rename from ctdb/lib/replace/test/testsuite.c rename to ctdb/lib/replace/tests/testsuite.c diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh new file mode 100755 index 00000000000..983afa0adb7 --- /dev/null +++ b/ctdb/tests/run_tests.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +tests/fetch.sh || exit 1 +tests/bench.sh || exit 1 +tests/test.sh || exit 1 + +echo "All OK" +exit 0