Esempio n. 1
0
                    required=True,
                    dest='outputDir',
                    help='Path to folder to store output files')
#parser.add_argument('-find', required=False, dest='Ffile',
#                    help='Filepath to the Output file of the RFind function.')
#parser.add_argument('-check', required=False, dest='Cfile',
#                    help='Filepath to the Output file of the RCheck function.')
result = parser.parse_args()

# Create a test client and run the KIDSBuildParser on the supplied KIDS build
testClient = VistATestClientFactory.createVistATestClientWithArgs(result)
assert testClient
with testClient:
    KIDSParser = KIDSBuildParser(result.outputDir)
    KIDSParser.parseKIDSBuild(result.KIDSbuild)
    KIDSParser.printResult()
    for root, dirnames, filenames in os.walk(result.outputDir):
        for filename in fnmatch.filter(filenames, '*.m'):
            name, ext = filename.split('.')
            routineset.append(name)
    print "Writing out intial XINDEX information: Start"
    FullXINDEX(testClient, result.outputDir, routineset)
    print "Writing out intial XINDEX information: Done"
    resultsfolder = os.path.join(result.outputDir, "RCheck_RFind")
    try:
        os.mkdir(resultsfolder)
    except:
        pass
    if testClient.isCache():
        print "Writing out initial %RCheck information: Start"
        WriteRCheck(testClient, resultsfolder, "RCheckResultsPre.log",
Esempio n. 2
0
                    help='Path to the .KIDS file')
parser.add_argument('-o', required=True, dest='outputDir',
                    help='Path to folder to store output files')
#parser.add_argument('-find', required=False, dest='Ffile',
#                    help='Filepath to the Output file of the RFind function.')
#parser.add_argument('-check', required=False, dest='Cfile',
#                    help='Filepath to the Output file of the RCheck function.')
result = parser.parse_args()

# Create a test client and run the KIDSBuildParser on the supplied KIDS build
testClient = VistATestClientFactory.createVistATestClientWithArgs(result)
assert testClient
with testClient:
  KIDSParser = KIDSBuildParser(result.outputDir)
  KIDSParser.parseKIDSBuild(result.KIDSbuild)
  KIDSParser.printResult()
  for root,dirnames,filenames in os.walk(result.outputDir):
    for filename in fnmatch.filter(filenames,'*.m'):
      name,ext = filename.split('.')
      routineset.append(name)
  print "Writing out intial XINDEX information: Start"
  FullXINDEX(testClient,result.outputDir,routineset)
  print "Writing out intial XINDEX information: Done"
  resultsfolder = os.path.join(result.outputDir,"RCheck_RFind")
  try:
    os.mkdir(resultsfolder)
  except:
    pass
  if testClient.isCache():
    print "Writing out initial %RCheck information: Start"
    WriteRCheck(testClient,resultsfolder,"RCheckResultsPre.log",routineset)