Package nMOLDYN :: Package Tests :: Package DISFG :: Module runTests |
[hide private]
[frames] | no frames]

# Source Code for Module nMOLDYN.Tests.DISFG.runTests

     1  import os
     2  import sys
     3  sys.path.insert(0, '/home/cs/pellegrini/nMOLDYN/development')
     4  from nMOLDYN.Core.IOFiles import convertASCIIToNetCDF
     5
     6  a = 'DISFG'
     7
     8  pMoldyn='/home/cs/pellegrini/nMOLDYN/nMOLDYN2.2.5/nMoldyn/bin/pMoldyn'
     9
    10  if len(sys.argv) > 1:
    11      selectedTests = [int(v) for v in sys.argv[1:]]
    12  else:
    13      selectedTests = range(1,13)
    14
    15  for i in selectedTests:
    16      print "Run test ", i
    17      os.system(pMoldyn + ' --isfg --input=%s%s_Reference.inp' % (a,i))
    18      os.system('mv DISFG_Fqt_test.nc Fqt%s_Reference.nc' % i)
    19      os.system('mv DISFG_Sqw_test.nc Sqw%s_Reference.nc' % i)
    20