def __init__(self):
     """ Pre Section for TestNVMeDsm """
     TestNVMe.__init__(self)
     self.start_block = 0
     self.range = 0
     self.namespace = 1
     self.setup_log_dir(self.__class__.__name__)
 def __init__(self):
     """ Pre Section for TestNVMeVerify """
     TestNVMe.__init__(self)
     self.start_block = 0
     self.block_count = 0
     self.namespace = 1
     self.setup_log_dir(self.__class__.__name__)
    def __del__(self):
        """
        Post Section for TestNVMeErrorLogCmd

            - Call super class's destructor.
        """
        TestNVMe.__del__(self)
Example #4
0
    def __del__(self):
        """
        Post Section for TestNVMeErrorLogCmd

            - Call super class's destructor.
        """
        TestNVMe.__del__(self)
Example #5
0
    def __del__(self):
        """
        Post Section for TestNVMeIdentifyNamespace

            - Call super class's destructor.
        """
        TestNVMe.__del__(self)
    def __del__(self):
        """
        Post Section for TestNVMeSimpleTestTemplate.

            - Call super class's destructor.
        """
        TestNVMe.__del__(self)
Example #7
0
    def __del__(self):
        """ Post Section for TestNVMeSimpleTestTemplate

            Call super class's destructor.
        """
        # Add this test specific cleanup code here
        TestNVMe.__del__(self)
Example #8
0
    def __del__(self):
        """
        Post Section for TestNVMeLbaStatLogCmd.

            - Call super class's destructor.
        """
        TestNVMe.__del__(self)
 def __init__(self):
     """ Pre Section for TestNVMeIO """
     TestNVMe.__init__(self)
     # common code used in various testcases.
     self.data_size = 512
     self.start_block = 0
     self.block_count = 0
     self.write_file = "write_file.txt"
     self.read_file = "read_file.txt"
 def __init__(self):
     """ Pre Section for TestNVMeGetLbaStatusCmd. """
     TestNVMe.__init__(self)
     self.start_lba = 0
     self.block_count = 0
     self.namespace = 1
     self.max_dw = 1
     self.action = 11
     self.range_len = 1
     self.setup_log_dir(self.__class__.__name__)
 def __init__(self):
     """ Pre Section for Identify Controller mandatory Actions """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
     self.identifycontroller__action_list = [
         "--human-readable", "--raw-binary", "--vendor-specific", "-b"
     ]
     self.identifycontroller__outtput_format_list = [
         "normal", "json", "binary"
     ]
 def __init__(self):
     """ Pre Section for TestNVMeAttachDetachNSCmd """
     TestNVMe.__init__(self)
     self.dps = 0
     self.flbas = 0
     self.nsze = 0x1400000
     self.ncap = 0x1400000
     self.setup_log_dir(self.__class__.__name__)
     self.ctrl_id = self.get_ctrl_id()
     self.delete_all_ns()
     time.sleep(1)
 def __init__(self):
     """ Pre Section for TestNVMeAttachDetachNSCmd """
     TestNVMe.__init__(self)
     self.dps = 0
     self.flbas = 0
     self.nsze = 0x1400000
     self.ncap = 0x1400000
     self.setup_log_dir(self.__class__.__name__)
     self.ctrl_id = self.get_ctrl_id()
     self.delete_all_ns()
     time.sleep(1)
 def __init__(self):
     """ Pre Section for TestNVMeGetMandetoryFeatures """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
     self.feature_id_list = ["0x01", "0x02", "0x04", "0x05", "0x07",
                             "0x08", "0x09", "0x0A", "0x0B"]
     get_vector_list_cmd = "cat /proc/interrupts | grep nvme |" \
                           " cut -d : -f 1 | tr -d ' ' | tr '\n' ' '"
     proc = subprocess.Popen(get_vector_list_cmd,
                             shell=True,
                             stdout=subprocess.PIPE)
     self.vector_list = []
     self.vector_list = proc.stdout.read().strip().split(" ")
    def __del__(self):
        """
        Post Section for TestNVMeAttachDetachNSCmd

            - Create primary namespace.
            - Atttach it to controller.
            - Call super class's destructor.
        """
        assert_equal(
            self.create_and_validate_ns(self.default_nsid, self.nsze,
                                        self.ncap, self.flbas, self.dps), 0)
        self.attach_ns(self.ctrl_id, self.default_nsid)
        TestNVMe.__del__(self)
 def __init__(self):
     """ Pre Section for TestNVMeAttachDetachNSCmd """
     TestNVMe.__init__(self)
     self.dps = 0
     self.flbas = 0
     self.nsze = int(self.get_ncap() /
                     self.get_format() / self.get_max_ns())
     self.ncap = self.nsze
     self.setup_log_dir(self.__class__.__name__)
     self.max_ns = self.get_max_ns()
     self.ctrl_id = self.get_ctrl_id()
     self.delete_all_ns()
     time.sleep(1)
 def __init__(self):
     """ Pre Section for TestNVMeGetMandatoryFeatures """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
     self.feature_id_list = ["0x01", "0x02", "0x04", "0x05", "0x07",
                             "0x08", "0x09", "0x0A", "0x0B"]
     get_vector_list_cmd = "cat /proc/interrupts | grep nvme |" \
                           " cut -d : -f 1 | tr -d ' ' | tr '\n' ' '"
     proc = subprocess.Popen(get_vector_list_cmd,
                             shell=True,
                             stdout=subprocess.PIPE,
                             encoding='utf-8')
     self.vector_list = []
     self.vector_list = proc.stdout.read().strip().split(" ")
    def __del__(self):
        """
        Post Section for TestNVMeAttachDetachNSCmd

            - Create primary namespace.
            - Atttach it to controller.
            - Call super class's destructor.
        """
        assert_equal(self.create_and_validate_ns(self.default_nsid,
                                                 self.nsze,
                                                 self.ncap,
                                                 self.flbas,
                                                 self.dps), 0)
        self.attach_ns(self.ctrl_id, self.default_nsid)
        TestNVMe.__del__(self)
Example #19
0
 def __init__(self):
     """ Pre Section for TestNVMeFormatCmd """
     TestNVMe.__init__(self)
     self.dps = 0                 # ns data protection settings
     self.flbas = 0               # ns formattes logical block settings
     self.nsze = 0x1400000        # ns size
     self.ncap = 0x1400000        # ns capacity
     self.ctrl_id = self.get_ctrl_id()
     self.lba_format_list = []
     self.ms_list = []
     self.lbads_list = []
     self.test_log_dir = self.log_dir + "/" + self.__class__.__name__
     self.setup_log_dir(self.__class__.__name__)
     self.delete_all_ns()
     time.sleep(1)
Example #20
0
 def __init__(self):
     """ Pre Section for TestNVMeFormatCmd """
     TestNVMe.__init__(self)
     self.dps = 0  # ns data protection settings
     self.flbas = 0  # ns formattes logical block settings
     self.nsze = 0x1400000  # ns size
     self.ncap = 0x1400000  # ns capacity
     self.ctrl_id = self.get_ctrl_id()
     self.lba_format_list = []
     self.ms_list = []
     self.lbads_list = []
     self.test_log_dir = self.log_dir + "/" + self.__class__.__name__
     self.setup_log_dir(self.__class__.__name__)
     self.delete_all_ns()
     time.sleep(1)
 def __del__(self):
     """ Post Section for TestNVMeCopy """
     TestNVMe.__del__(self)
Example #22
0
	def __init__(self):
         	""" Pre Section for TestNVMe_fw_log mandatory Actions """
		TestNVMe.__init__(self)
        	self.setup_log_dir(self.__class__.__name__)
        	self.fw_log_action_list = ["--raw-binary", "-b"]
        	self.fw_log_outtput_format_list = ["normal", "json","binary"]
Example #23
0
 def __del__(self):
     """ Post Section for TestNVMeFlushCmd """
     TestNVMe.__del__(self)
Example #24
0
    def __del__(self):
        """ Post Section for TestNVMe_fw_log mandatory Actions

            	     Call super class's destructor.
		"""
        TestNVMe.__del__(self)
Example #25
0
 def __init__(self):
     """ Pre Section for TestNVMeLbaStatLogCmd. """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
    def __del__(self):
        """ Post Section for TestNVMeGetMandatoryFeatures

            Call super class's destructor.
        """
        TestNVMe.__del__(self)
Example #27
0
	def __del__(self):
		""" Post Section for TestNVMe_fw_log mandatory Actions

            	     Call super class's destructor.
		"""
		TestNVMe.__del__(self)
Example #28
0
	def __del__(self):
		""" Post Section for TestNVMeIdentify Namespace mandatory Actions

            	     Call super class's destructor.
		"""
		TestNVMe.__del__(self)
Example #29
0
 def __init__(self):
     """ Pre Section for TestNVMeFlushCmd """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
Example #30
0
	def __init__(self):
         	""" Pre Section for TestNVMeIdentify Namespace mandatory Actions """
		TestNVMe.__init__(self)
        	self.setup_log_dir(self.__class__.__name__)
        	self.identifynamespace__action_list = ["--human-readable","--raw-binary","--vendor-specific","-b"]
        	self.identifynamespace__outtput_format_list = ["normal", "json","binary"]
Example #31
0
 def __init__(self):
     """ Pre Section for TestNVMeSimpleTestTemplate. """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
 def __del__(self):
     """ Post Section for TestNVMeVerify """
     TestNVMe.__del__(self)
    def __del__(self):
        """ Post Section for TestNVMeIdentify Controller mandatory Actions

            	     Call super class's destructor.
		"""
        TestNVMe.__del__(self)
Example #34
0
 def __init__(self):
     """ Pre Section for TestNVMeIdentifyNamespace. """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
     self.ns_list = self.get_ns_list()
Example #35
0
    def __del__(self):
        """ Post Section for TestNVMeIdctrlCmd

            Call super class's destructor.
        """
        TestNVMe.__del__(self)
Example #36
0
 def __del__(self):
     """ Post Section for TestNVMeFlushCmd """
     TestNVMe.__del__(self)
    def __del__(self):
        """ Post Section for TestNVMeGetMandetoryFeatures

            Call super class's destructor.
        """
        TestNVMe.__del__(self)
Example #38
0
 def __del__(self):
     """ Post Section for TestNVMeIO """
     TestNVMe.__del__(self)
Example #39
0
 def __init__(self):
     """ Pre Section for TestNVMeErrorLogCmd """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
Example #40
0
 def __init__(self):
     """ Pre Section for TestNVMe_fw_log mandatory Actions """
     TestNVMe.__init__(self)
     self.setup_log_dir(self.__class__.__name__)
     self.fw_log_action_list = ["--raw-binary", "-b"]
     self.fw_log_outtput_format_list = ["normal", "json", "binary"]