Beispiel #1
0
 def _writeUnitTestFilesScript(self):
     self.fileScriptName = self.workingDir + '/unittestfilesscript.sh'
     fid = open(self.fileScriptName, 'wt')
     fid.write('#! ' + FileSystem.getOctave() + ' -qf\n')
     fid.write('addpath(\"' + self.workingDir + '\");\n')
     fid.write('fname = unittest(' + str(self.partId) + ', true);\n')
     fid.write('printf(fname);')
     fid.write('return\n')
     fid.close()
     self._makeExecutable(self.fileScriptName)
Beispiel #2
0
 def _writeUnitTestScript(self):
     self.scriptName = self.workingDir + '/unittestscript.sh'
     fid = open(self.scriptName, 'wt')
     fid.write('#! ' + FileSystem.getOctave() + ' -qf\n')
     fid.write('addpath(\"' + self.workingDir + '\");\n')
     fid.write('output = unittest(' + str(self.partId) + ', false);\n')
     fid.write('printf(output);\n')
     fid.write('printf(\'\\nresult\');\n')
     fid.write('return\n')
     fid.close()
     self._makeExecutable(self.scriptName)