6cc3773fd22e421eb59837137973a7cc546ed8d1
[monkeysphere.git] / website / bugs / genericize-filesystem-locations-for-testsuite.mdwn
1 [[!meta title="genericize all filesystem locations to enable test suite:" ]]
2
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
5 properly.
6
7 It occurs to me that lines like these:
8
9     ETC="/etc/monkeysphere"
10     VARLIB="/var/lib/monkeysphere"
11
12 Actually make it very difficult to generically test the tool without
13 it being installed system-wide.
14
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?
18
19     SHARE=${MONKEYSPHERE_SHARE:-"/usr/share/monkeysphere"}
20
21 I guess i'm proposing something like:
22
23     SYSCONFIGDIR=${MONKEYSPHERE_SYSCONFIGDIR:-"/etc/monkeysphere"}
24     SYSDATADIR=${MONKEYSPHERE_SYSDATADIR:-"/var/lib/monkeysphere"}
25
26 Thoughts?
27
28 --dkg
29
30 ---
31
32 [[bugs/done]] on 2008-10-11