1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
samba-mirror/ctdb/tests/UNIT/cunit/path_tests_001.sh
Martin Schwenke 43ed3a6eb3 ctdb-tests: Move cunit tests to UNIT/ subdirectory
The UNIT subdirectory directory will contain all unit tests.  Use an
uppercase name to avoid conflicts with source code subdirectories.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-09-26 04:45:36 +00:00

63 lines
883 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
PATH="$PATH:$CTDB_SCRIPTS_TOOLS_HELPER_DIR"
setup_ctdb_base "${CTDB_TEST_TMP_DIR}" "ctdb-etc"
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