wafsamba: fix pidl dependencies to rebuild on pidl changes
[Samba.git] / ctdb / tests / cunit / path_tests_001.sh
blob7b2ff129b71e474241f14e037379674a76d48a4f
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 PATH="$PATH:$CTDB_SCRIPTS_TOOLS_HELPER_DIR"
7 setup_ctdb_base "${TEST_VAR_DIR}" "cunit"
9 ok <<EOF
10 $CTDB_BASE/ctdb.conf
11 EOF
12 unit_test ctdb-path config
14 ok <<EOF
15 $CTDB_BASE/run/foobar.pid
16 EOF
17 unit_test ctdb-path pidfile foobar
19 ok <<EOF
20 $CTDB_BASE/run/foobar.socket
21 EOF
22 unit_test ctdb-path socket foobar
24 ok <<EOF
25 $CTDB_BASE/share
26 EOF
27 unit_test ctdb-path datadir
29 ok <<EOF
30 $CTDB_BASE
31 EOF
32 unit_test ctdb-path etcdir
34 ok <<EOF
35 $CTDB_BASE/run
36 EOF
37 unit_test ctdb-path rundir
39 ok <<EOF
40 $CTDB_BASE/var
41 EOF
42 unit_test ctdb-path vardir
44 ok <<EOF
45 $CTDB_BASE/share/foobar
46 EOF
47 unit_test ctdb-path datadir append foobar
49 ok <<EOF
50 $CTDB_BASE/foobar
51 EOF
52 unit_test ctdb-path etcdir append foobar
54 ok <<EOF
55 $CTDB_BASE/run/foobar
56 EOF
57 unit_test ctdb-path rundir append foobar
59 ok <<EOF
60 $CTDB_BASE/var/foobar
61 EOF
62 unit_test ctdb-path vardir append foobar