예제 #1
0
 def test_unittest(self, driver_mode):
     aws_fpga_test_utils.install_edma_driver(mode=driver_mode)
     assert aws_fpga_test_utils.edma_driver_installed() == True
     (rc, stdout_lines, stderr_lines) = self.run_cmd(
         "cd {}/sdk/linux_kernel_drivers/edma/unit-test && ./run_unit_test.sh"
         .format(self.WORKSPACE),
         echo=True)
     assert rc == 0
예제 #2
0
 def test_perftest(self):
     self.load_msix_workaround(slot=0)
     self.fpga_load_local_image(self.cl_dram_dma_agfi, 0)
     aws_fpga_test_utils.install_edma_driver()
     assert aws_fpga_test_utils.edma_driver_installed() == True
     (rc, stdout_lines, stderr_lines) = self.run_cmd(
         "cd {}/sdk/linux_kernel_drivers/edma/unit-test && ./run_perf_test.sh"
         .format(self.WORKSPACE),
         echo=True)
     assert rc == 0
예제 #3
0
    def test_fio_read_benchmark(self, driver_mode):
        aws_fpga_test_utils.install_edma_driver(mode=driver_mode)
        assert aws_fpga_test_utils.edma_driver_installed() == True

        (rc, stdout_lines, stderr_lines) = self.run_cmd("sudo {} {}".format(
            self.get_fio_tool_run_script(),
            self.get_fio_read_benchmark_script(driver='edma')),
                                                        echo=True,
                                                        check=False)
        if rc != 0:
            logger.error("FIO edma read benchmark 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