diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-04-28 10:57:58 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-04-28 10:57:58 +0200 |
commit | 76381c4493b6273fa1aa3ea6f5277f7471d42d7e (patch) | |
tree | 39fc5e1cfaefbce78e30f4260febfc97cf5d4eb0 | |
parent | 353a82f87c974456e4d41ba6ef42006d17008d02 (diff) | |
download | samba-76381c4493b6273fa1aa3ea6f5277f7471d42d7e.tar.gz samba-76381c4493b6273fa1aa3ea6f5277f7471d42d7e.tar.xz samba-76381c4493b6273fa1aa3ea6f5277f7471d42d7e.zip |
added make test and make valgrindtest targets
(This used to be ctdb commit b69fb43643993ee5aaabf8711bb874f95d468f35)
-rw-r--r-- | ctdb/Makefile.in | 8 | ||||
-rw-r--r-- | ctdb/lib/replace/tests/os2_delete.c (renamed from ctdb/lib/replace/test/os2_delete.c) | 0 | ||||
-rw-r--r-- | ctdb/lib/replace/tests/shared_mmap.c (renamed from ctdb/lib/replace/test/shared_mmap.c) | 0 | ||||
-rw-r--r-- | ctdb/lib/replace/tests/testsuite.c (renamed from ctdb/lib/replace/test/testsuite.c) | 0 | ||||
-rwxr-xr-x | ctdb/tests/run_tests.sh | 8 |
5 files changed, 15 insertions, 1 deletions
diff --git a/ctdb/Makefile.in b/ctdb/Makefile.in index 7837ff1f91..a80908c638 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 index c8abfccff9..c8abfccff9 100644 --- a/ctdb/lib/replace/test/os2_delete.c +++ b/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 index 50dad8d696..50dad8d696 100644 --- a/ctdb/lib/replace/test/shared_mmap.c +++ b/ctdb/lib/replace/tests/shared_mmap.c diff --git a/ctdb/lib/replace/test/testsuite.c b/ctdb/lib/replace/tests/testsuite.c index effbdb13ef..effbdb13ef 100644 --- a/ctdb/lib/replace/test/testsuite.c +++ b/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 0000000000..983afa0adb --- /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 |