예제 #1
0
 def __init__(self):
   self.ssh = remote_host_helper.sshclient()
   self.ssh.load_system_host_keys()
   self.sample_code_in = None
   self.test0 = SampleTest0()
   self.test1 = SampleTest1(self)
   self.test2 = SampleTest2(self)
예제 #2
0
 def __init__(self):
     self.ssh = remote_host_helper.sshclient()
     self.ssh.load_system_host_keys()
     self.sample_code_in = None
     self.test0 = SampleTest0()
     self.test1 = SampleTest1(self)
     self.test2 = SampleTest2(self)
예제 #3
0
def setup_suite():
  global __ssh__
  __ssh__ = remote_host_helper.sshclient()
  __ssh__.load_system_host_keys()
  __ssh__.connect("localhost")
  sample_code = os.path.join(TEST_DIRECTORY, "samples/trivial_program")
  global __sample_code_in__
  __sample_code_in__, stdout, stderr = __ssh__.exec_command("python {0}".format(sample_code))
예제 #4
0
def setup_suite():
  if os.path.isdir("/tmp/test_with_naarad"):
    shutil.rmtree("/tmp/test_with_naarad")
  if not os.path.isdir(LOGS_DIRECTORY):
    os.makedirs(LOGS_DIRECTORY)
  if not os.path.isdir(OUTPUT_DIRECTORY):
    os.makedirs(OUTPUT_DIRECTORY)
  global __ssh__
  __ssh__ = remote_host_helper.sshclient()
  __ssh__.load_system_host_keys()
  __ssh__.connect("localhost")
  sample_code = os.path.join(TEST_DIRECTORY, "samples/trivial_program_with_timing")
  global __sample_code_in__
  __sample_code_in__, stdout, stderr = __ssh__.exec_command("python {0}".format(sample_code))