fe.set_device_info(DEVICE_INFO[dut_name]) fe.set_impl_id(IMPL_ID) # Use functions below to add pre-/post-launch commands if your device has special startup requirements @classmethod def devicePreLaunch(self): pass @classmethod def devicePostLaunch(self): pass # Use functions below to add pre-/post-release commands if your device has special shutdown requirements @classmethod def devicePreRelease(self): pass @classmethod def devicePostRelease(self): pass if __name__ == '__main__': fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(DEVICE_INFO[dut_name]) fe.set_impl_id(IMPL_ID) # run using nose import nose nose.main(defaultTest=__name__)
def __init__(self, *args, **kwargs): import ossie.utils.testing super(FrontendTunerTests, self).__init__(*args, **kwargs) fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(DEVICE_INFO[dut_name]) fe.set_impl_id(IMPL_ID)
], 'SR': [ chan['device_channels::rate_min'], chan['device_channels::rate_max'] ], 'GAIN': [ chan['device_channels::gain_min'], chan['device_channels::gain_max'] ] } } dut_config[DUT]['capabilities'].append(chan_capabilities) # Use functions below to add pre-/post-release commands if your device has special shutdown requirements @classmethod def devicePreRelease(self): pass @classmethod def devicePostRelease(self): pass if __name__ == '__main__': fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(dut_config[DUT]) # run using nose import nose nose.main(defaultTest=__name__)
def __init__(self, *args, **kwargs): import ossie.utils.testing super(FrontendTunerTests, self).__init__(*args, **kwargs) fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(dut_config[DUT])
def __init__(self,*args,**kwargs): import ossie.utils.testing super(FrontendTunerTests,self).__init__(*args,**kwargs) fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(dut_config[DUT])
else: USRP_MODEL_REQUIRES_DELAY = False except: USRP_MODEL_REQUIRES_DELAY=True # Use functions below to add pre-/post-release commands if your device has special shutdown requirements @classmethod def devicePreRelease(self): pass @classmethod def devicePostRelease(self): global DELAY_BT_TESTS, ADD_DELAY_BT_TESTS, UHD_VERSION_REQUIRES_DELAY, USRP_MODEL_REQUIRES_DELAY if DELAY_BT_TESTS > 0: #No need to add delay if set to 0 if ADD_DELAY_BT_TESTS==True: print 'DELAY: adding user forced delay' time.sleep(DELAY_BT_TESTS) elif ADD_DELAY_BT_TESTS==False: print 'DELAY: user forced no delay' elif UHD_VERSION_REQUIRES_DELAY and USRP_MODEL_REQUIRES_DELAY: print 'DELAY: adding uhd+usrp required delay' time.sleep(DELAY_BT_TESTS) if __name__ == '__main__': fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(dut_config[DUT]) # run using nose import nose nose.main(defaultTest=__name__)
def __init__(self,*args,**kwargs): import ossie.utils.testing super(FrontendTunerTests,self).__init__(*args,**kwargs) fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(DEVICE_INFO[dut_name]) fe.set_impl_id(IMPL_ID)
'CF_MAX': 2220.0e6, 'CF_MIN': 48.75e6, 'BW_MAX': 40.0e6, 'BW_MIN': 40.0e6, 'SR_MAX': 50.0e6, 'SR_MIN': 195.3125e3, 'GAIN_MIN' :0.0, 'GAIN_MAX' :38.0} else: print >> sys.stderr, "unable to determine daughterboard for this USRP2 device. Aborting." sys.exit() # Use functions below to add pre-/post-release commands if your device has special shutdown requirements @classmethod def devicePreRelease(self): pass @classmethod def devicePostRelease(self): pass if __name__ == '__main__': fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(DEVICE_INFO[dut_name]) fe.set_impl_id(IMPL_ID) # run using nose import nose nose.main(defaultTest=__name__)
msdd_id=None if args.device is not None: msdd_id = args.device else: try: from id_msdd import id_msdd msdd_id = id_msdd(args.ip) except: raise Exception("Unable to contact ip: " + args.ip) import dut dut_config=dut.get_config( msdd_id, DUT_IP_ADDR=args.ip, DUT_PORT=args.port, DUT_RCV_ID=args.rcv_id, OUTPUT_ADDR=args.output_ip, OUTPUT_PORT=args.output_port, OUTPUT_VLAN=args.output_vlan, PSD_ADDR=args.psd_ip) if dut_config is None: raise Exception("No configuration for msdd id: " + str(msdd_id)) print "Running FEI test suite against: msdd_id:", msdd_id, " ip ", args.ip sys.argv[1:]=remaining_args fe.set_debug_level(DEBUG_LEVEL) fe.set_device_info(dut_config) # run using nose import nose nose.main(defaultTest=__name__)