Exemplo n.º 1
0
**building test tree end 
**/

STATIC int test_perform(void)
{

#ifdef WILDDOG_SELFTEST
	int res = 0;
	u8 url[strlen(TEST_URL)+20];
  
	if( (res = test_buildtreeFunc() ) < 0 )
			return res;
	{
			u8 tree_m=0,n=0,d=0;	
			u8 request_num[4] = {1,16,32,64};
			u32 delay_tm[5] = {0,50,100,250,500};
				
			performtest_titile_printf();
			
			for(d=0; d<2; d++)
			{
				for(n=0; n<4; n++)
				{
					for(tree_m=0; tree_m< TEST_TREE_ITEMS; tree_m++)
					{

						
						
						memset(url,0,sizeof(url));
						sprintf((char*)url,"%s%s",TEST_URL,p_path[tree_m]);
						performtest_handle(delay_tm[d],url,\
							d_tree_num[tree_m],request_num[n]);

					}
				}
			}
			
			performtest_end_printf();
			return 0;
	}
#endif
	return 0;

}
Exemplo n.º 2
0
void performtest_all(void)
{
	u8 m=0,n=0,d=0;	
	u8 tree_num[3] = {1,2,3};
	u8 request_num[4] = {1,16,32,64};
	u32 delay_tm[5] = {0,50,100,250,500};
	performtest_titile_printf();
	for(d=0; d<2; d++)
	{
		for(n=0; n<4; n++)
		{
			for(m=0; m<3; m++)
			{
				performtest_handle(delay_tm[d],tree_num[m],request_num[n]);
#ifdef WILDDOG_PORT_TYPE_WICED
				wiced_rtos_delay_milliseconds(2000);
#endif
			}
		}
	}
	
	performtest_end_printf();
	
}