changeset 66:8b75ba4a3745

Merged with Sigurd.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Wed, 27 May 2009 12:00:34 +0200
parents 8cd61403ce80 (current diff) 96f2bcc37151 (diff)
children e228c35b36c0
files
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/test/unit/test_rangeanalysis.py	Wed May 27 11:58:57 2009 +0200
+++ b/pysmcl/test/unit/test_rangeanalysis.py	Wed May 27 12:00:34 2009 +0200
@@ -6,8 +6,6 @@
 from pysmcl.ideal_functionality import init_statements
 from pysmcl.range_analysis import RangeAnalysis, Bottom
 
-x = 30
-
 class RangeAnalysisTest(unittest.TestCase):
 
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/runtests.py	Wed May 27 12:00:34 2009 +0200
@@ -0,0 +1,15 @@
+import unittest
+import os
+import re
+
+def main():
+    tests = []
+    for f in os.listdir('pysmcl/test/unit/'):
+        if re.match(r'test_.*\.py', f):
+            m = __import__('pysmcl.test.unit.' + f[:-3], globals(), locals(), ['*'])
+            tests.append(unittest.defaultTestLoader.loadTestsFromModule(m))
+    h = unittest.TextTestRunner()
+    print h.run(unittest.TestSuite(tests))
+
+if __name__ == '__main__':
+    main()