mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
3bebc5d8a0
Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
63 lines
875 B
Bash
Executable File
63 lines
875 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
PATH="$PATH:$CTDB_SCRIPTS_TOOLS_HELPER_DIR"
|
|
|
|
setup_ctdb_base "${TEST_VAR_DIR}" "cunit"
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/ctdb.conf
|
|
EOF
|
|
unit_test ctdb-path config
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/run/foobar.pid
|
|
EOF
|
|
unit_test ctdb-path pidfile foobar
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/run/foobar.socket
|
|
EOF
|
|
unit_test ctdb-path socket foobar
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/share
|
|
EOF
|
|
unit_test ctdb-path datadir
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE
|
|
EOF
|
|
unit_test ctdb-path etcdir
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/run
|
|
EOF
|
|
unit_test ctdb-path rundir
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/var
|
|
EOF
|
|
unit_test ctdb-path vardir
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/share/foobar
|
|
EOF
|
|
unit_test ctdb-path datadir append foobar
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/foobar
|
|
EOF
|
|
unit_test ctdb-path etcdir append foobar
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/run/foobar
|
|
EOF
|
|
unit_test ctdb-path rundir append foobar
|
|
|
|
ok <<EOF
|
|
$CTDB_BASE/var/foobar
|
|
EOF
|
|
unit_test ctdb-path vardir append foobar
|