Merging from head
[beagle.git] / beagled / SanityCheckTool.cs
blobba2d3eca012d48b44b81f413b3078ba74ec6fddc
1 //
2 // SanityCheckTool.cs
3 // Copyright (C) 2005 Novell, Inc.
4 //
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy
8 // of this software and associated documentation files (the "Software"), to deal
9 // in the Software without restriction, including without limitation the rights
10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 // copies of the Software, and to permit persons to whom the Software is
12 // furnished to do so, subject to the following conditions:
14 // The above copyright notice and this permission notice shall be included in all
15 // copies or substantial portions of the Software.
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 // SOFTWARE.
27 using System;
28 using System.IO;
30 using Beagle.Util;
31 using Beagle.Daemon;
32 using Beagle.Daemon.FileSystemQueryable;
34 class SanityCheckTool {
36 static void Main (string [] args)
38 #if false
39 Logger.DefaultEcho = true;
40 Logger.DefaultLevel = LogLevel.Debug;
42 string fs_dir = Path.Combine (PathFinder.IndexDir, "FileSystemIndex");
44 FileSystemModel model = new FileSystemModel (fs_dir, null, null);
46 // FIXME: Shouldn't be hard-wired
47 model.AddRoot (PathFinder.HomeDir);
49 SanityCheck.CheckDirectory (PathFinder.HomeDir, null, model);
50 #endif