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

📄 kpd_test_regr.c

📁 MMI层OBJ不能完全编译
💻 C
字号:
/**
 * @file	kpd_test_regr.c
 *
 * Gathers functions used for non-regression testing of KPD SWE.
 *
 * @author	Lara Mascoli (lara.mascoli@silicomp.com)
 * @version 0.1
 */

/*
 * History:
 *
 * 	Date       	Author										Modification				
 *  ---------------------------------------------------------------------
 *  07/10/2003	Lara Mascoli (lara.mascoli@silicomp.com)	Create					
 *	08/18/2003	Denis Delaveau (denis.delaveau@silicomp.com) new numerotation 200 to 299 for ICT tests
 *  08/28/2003  Lara Mascoli								Change the dispatch in kpd_test_regr()
 *
 * (C) Copyright 2003 by SILICOMP, All Rights Reserved
 */


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

#include "r2d/lcd_messages_ti.h"
#include "r2d/lcd_messages.h"

#include "kpd/kpd_api.h"

#include "tests/rtest/rtest_api.h"



extern T_RV_MISC_RET kpd_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 kpd_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("*** KPD 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 &= kpd_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 + -