⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dma_test_regr.c

📁 MMI层OBJ不能完全编译
💻 C
字号:
/**
 * @file	dma_test_regr.c
 *
 * Gathers functions used for non-regression testing of DMA SWE.
 *
 * @author	
 * @version
 */

/*
 * History:
 *
 * 	Date       	Modification			Author
 *  -------------------------------------------------------
 *  04/07/2003	Create					  
 *			
 *
 * (C) Copyright 2002 by Texas Instruments Incorporated, All Rights Reserved
 */



#include "rvm/rvm_api.h"
#include "rvm/rvm_use_id_list.h"

#include "dma/dma_api.h"

#include "tests/rtest/rtest_api.h"

T_RV_MISC_RET dma_test_misc(T_RV_MISC_TEST_NBR test_number);


/**
 * Main function multiplexing the different demos to process.
 *
 * This function returns the result of the test.
 *
 * @param	list				List of tests to process
 * @param	nb_of_test_in_list	Number of tests in list
 * @param	test_occ			Number of times to process each test
 * @return	Result of the test.
 */
T_RV_REGR_RET dma_test_regr (T_RV_REGR_TEST_LIST list[], 
							 T_RV_REGR_TEST_TOT	 nb_of_test_in_list, 
							 T_RV_REGR_TEST_OCC	 test_occ)
{
	T_RV_REGR_ERR_TYPE	error_type;
	T_RV_REGR_RET		test_verdict;
	T_RV_REGR_TEST_TOT	i;
	T_RV_REGR_TEST_OCC	j;
	
	RV_TEST_TRACE_HIGH("*** DMA NON-REGRESSION TEST BEGINS");

	error_type = NO_ERR;
	test_verdict = TEST_PASSED;

	/* Memory dump -> check memory used before testing */
	rvf_dump_mem();	
	
	for (i = 0; i < nb_of_test_in_list; i ++)
	{		
		for (j = 0; j < test_occ; j ++)
		{			
	        if (test_verdict == TEST_PASSED)
			{
				test_verdict &= dma_test_misc( list[i].list_nbr);
			}
		}
	}

	RV_TEST_TRACE_HIGH("* Final result of non-regressions tests is:");
	rtest_trace_test_verdict(test_verdict);

	/* Memory dump -> check memory used after testing */
    rvf_delay(RVF_MS_TO_TICKS(500));
    rvf_dump_mem();
    
	return test_verdict;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -