1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r8448: - added a test target for tdb

- reduced the torture size so it doesn't kill the build farm hosts
This commit is contained in:
Andrew Tridgell 2005-07-14 04:27:55 +00:00 committed by Gerald (Jerry) Carter
parent 4a61a5c70e
commit 7a88a9f06c
2 changed files with 9 additions and 2 deletions

View File

@ -40,3 +40,8 @@ bin/tdbbackup: tools/tdbbackup.o $(TDB_OBJ)
clean:
rm -f $(PROGS) common/*.o tools/*.o *~ *.bak */*~ */*.bak *% core test.db test.tdb test.gdbm
installcheck: install
$(bindir)/tdbtorture
test: installcheck

View File

@ -182,11 +182,11 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
}
#ifndef NPROC
#define NPROC 6
#define NPROC 2
#endif
#ifndef NLOOPS
#define NLOOPS 200000
#define NLOOPS 5000
#endif
int main(int argc, const char *argv[])
@ -197,6 +197,8 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
pids[0] = getpid();
unlink("torture.tdb");
for (i=0;i<NPROC-1;i++) {
if ((pids[i+1]=fork()) == 0) break;
}