Esempio n. 1
0
 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)
Esempio n. 2
0
        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__)
Esempio n. 3
0
 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])
Esempio n. 4
0
 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])
Esempio n. 5
0
                    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__)
Esempio n. 6
0
 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)