chiark / gitweb /
sync up with disorder.dev
[disorder] / tests / files.py
index 938564ac62b25ca193f2eded9e2a90a0f2efd0d9..89375a66a50def6bb729be8fbdd96e95233baf7f 100755 (executable)
@@ -1,8 +1,28 @@
 #! /usr/bin/env python
+#
+# This file is part of DisOrder.
+# Copyright (C) 2007 Richard Kettlewell
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+#
 import dtest,time,disorder,sys
 
 def test():
-    """Ask the server its version number"""
+    """Check that the file listing comes out right"""
+    dtest.start_daemon()
     time.sleep(5)                       # give rescan a chance
     c = disorder.client()
     failures = 0
@@ -33,4 +53,4 @@ def test():
         sys.exit(1)
 
 if __name__ == '__main__':
-    dtest.run(test)
+    dtest.run()