1 [[!meta title="genericize all filesystem locations to enable test suite:" ]]
3 I'm in the process of writing a testsuite for the monkeysphere so that
4 we can verify that it actually performs all the basic expected duties
7 It occurs to me that lines like these:
9 ETC="/etc/monkeysphere"
10 VARLIB="/var/lib/monkeysphere"
12 Actually make it very difficult to generically test the tool without
13 it being installed system-wide.
15 Is there any reason that we should not allow these directories to be
16 overridden with environment variables in the same way that
17 `/usr/share/monkeysphere/share` is handled?
19 SHARE=${MONKEYSPHERE_SHARE:-"/usr/share/monkeysphere"}
21 I guess i'm proposing something like:
23 SYSCONFIGDIR=${MONKEYSPHERE_SYSCONFIGDIR:-"/etc/monkeysphere"}
24 SYSDATADIR=${MONKEYSPHERE_SYSDATADIR:-"/var/lib/monkeysphere"}
32 [[bugs/done]] on 2008-10-11