Ejemplo n.º 1
0
    def test_fio_dma_verify(self, driver_mode):
        aws_fpga_test_utils.install_xdma_driver(mode=driver_mode)
        assert aws_fpga_test_utils.xdma_driver_installed() == True

        (rc, stdout_lines, stderr_lines) = self.run_cmd("sudo {} {}".format(
            self.get_fio_tool_run_script(), self.get_fio_verify_script()),
                                                        echo=True,
                                                        check=False)
        if rc != 0:
            logger.error("FIO xdma verify test failed")
            # Create some diagnostic information
            # Debug is problematic for intermittent problems because the instance is terminated when the tests finish.
            self.run_cmd("sudo fpga-describe-local-image-slots",
                         check=False,
                         echo=True)
            for slot in range(self.num_slots):
                self.run_cmd(
                    "sudo fpga-describe-local-image -S {} -M".format(slot),
                    check=False,
                    echo=True)
        assert rc == 0
Ejemplo n.º 2
0
 def test_install(self):
     aws_fpga_test_utils.install_xdma_driver()
     assert aws_fpga_test_utils.xdma_driver_installed() == True
Ejemplo n.º 3
0
    def test_install(self, driver_mode):

        aws_fpga_test_utils.install_xdma_driver(mode=driver_mode)
        assert aws_fpga_test_utils.xdma_driver_installed() == True