def setUp(self): self.process = Process("proc") for controller in motion_block( mri="TESTMOTION", config_dir="/tmp") + pva_server_block(mri="PVA-SERVER"): self.process.add_controller(controller) self.process.start() self.process2 = Process("proc2") for controller in pva_client_block(mri="PVA-CLIENT") + proxy_block( mri="TESTMOTION", comms="PVA-CLIENT"): self.process2.add_controller(controller) self.process2.start()
def setUp(self): TestPVAServer.SEQ += 1 self.process = Process("proc%s" % TestPVAServer.SEQ) self.hello = hello_block(mri="TESTHELLO")[-1] self.process.add_controller(self.hello) self.counter = counter_block(mri="TESTCOUNTER")[-1] self.process.add_controller(self.counter) self.server = pva_server_block(mri="PVA")[-1] self.process.add_controller(self.server) self.process.start() self.addCleanup(self.process.stop, timeout=2) self.ctxt = self.make_pva_context(unwrap=False)
def setUp(self): self.process = Process("proc") for controller in detector_block( mri="TESTDET", config_dir="/tmp") + pva_server_block(mri="PVA-SERVER"): self.process.add_controller(controller) self.process.start() self.process2 = Process("proc2") for controller in pva_client_block(mri="PVA-CLIENT") + proxy_block( mri="TESTDET", comms="PVA-CLIENT"): self.process2.add_controller(controller) self.process2.start() self.tmpdir = tempfile.mkdtemp()
def setUp(self): self.process = Process("proc") for controller in \ ticker_block(mri="TICKER", config_dir="/tmp") + \ pva_server_block(mri="PVA-SERVER"): self.process.add_controller(controller) self.process.start() self.process2 = Process("proc2") for controller in \ pva_client_block(mri="PVA-CLIENT") + \ proxy_block(mri="TICKER", comms="PVA-CLIENT"): self.process2.add_controller(controller) self.process2.start()