summaryrefslogtreecommitdiff
path: root/tests/test_all.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_all.py')
-rw-r--r--tests/test_all.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_all.py b/tests/test_all.py
new file mode 100644
index 00000000..ea74e09b
--- /dev/null
+++ b/tests/test_all.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+# Copyright (C) 2009 Julian Andres Klode <jak@debian.org>
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+"""Run all available unit tests."""
+import os
+import unittest
+
+if __name__ == '__main__':
+ os.chdir(os.path.dirname(__file__))
+ for path in os.listdir('.'):
+ if path.endswith('.py') and os.path.isfile(path):
+ exec('from %s import *' % path[:-3])
+
+ unittest.main()