1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/source4/lib/ldb/tests/init_slapd.sh
Andrew Tridgell 232bc1503f r490: - expanded the test suite to test modify and delete operations
- made yet another attempt to make ldb const clean.

- "make test" now runs both the tdb and ldap backend tests, and run the ldbtest utility
  with and without indexing

- added prototypes in ldb.h for ldb_msg_*() public functions
(This used to be commit 01e87406768cb5a98ac8530a2f361a4987a36cd3)
2007-10-10 12:51:45 -05:00

16 lines
258 B
Bash
Executable File

#!/bin/sh
export PATH=/usr/sbin:$PATH
rm -rf tests/tmp/db
mkdir -p tests/tmp/db
if pidof slapd > /dev/null; then
killall slapd
fi
sleep 2
if pidof slapd > /dev/null; then
killall -9 slapd
fi
slapadd -f tests/slapd.conf < tests/init.ldif || exit 1