]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/pbar/test/test1.py
Import m_lib/pbar
[m_lib.git] / m_lib / pbar / test / test1.py
diff --git a/m_lib/pbar/test/test1.py b/m_lib/pbar/test/test1.py
new file mode 100755 (executable)
index 0000000..ed15ce6
--- /dev/null
@@ -0,0 +1,23 @@
+#! /usr/bin/env python
+"""
+   Test N1 to time file reading
+"""
+
+import sys
+from clock import clock
+
+
+def test():
+   print "Test: ",
+   sys.stdout.flush()
+
+   infile = open(sys.argv[1])
+   lines = infile.readlines()
+   infile.close()
+
+   print "Ok"
+
+
+if __name__ == "__main__":
+   test()
+   print "Overall time:", clock()