Changeset 336


Ignore:
Timestamp:
Sep 22, 2004, 9:09:04 AM (20 years ago)
Author:
ole
Message:

Added compilation to testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_all.py

    r195 r336  
    1010
    1111import unittest
     12import os
    1213
    1314def regressionTest():
     
    1516    path = os.path.split(sys.argv[0])[0] or os.getcwd()
    1617    files = os.listdir(path)
    17     test = re.compile("^test_[\w]*.py$", re.IGNORECASE)
     18    test = re.compile('^test_[\w]*.py$', re.IGNORECASE)
    1819    files = filter(test.search, files)
    1920
     
    2930    return unittest.TestSuite(map(load, modules))
    3031
    31 if __name__ == "__main__":
    32     unittest.main(defaultTest="regressionTest")
     32if __name__ == '__main__':
     33
     34    os.system('python compile.py') #Attempt to compile all extensions
    3335   
     36    unittest.main(defaultTest='regressionTest')
     37   
Note: See TracChangeset for help on using the changeset viewer.