VSF Documented
Macros | Functions
vsf_test_port_appcfg.c File Reference
#include "../vsf_test.h"
#include "vsf_test_port_appcfg.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include "service/trace/vsf_trace.h"

Macros

#define __VSF_TEST_APPCFG_TRACE_INFO(...)   vsf_trace_info(__VA_ARGS__)
 
#define __VSF_TEST_APPCFG_TRACE_DEBUG(...)   vsf_trace_debug(__VA_ARGS__)
 
#define __VSF_TEST_APPCFG_TRACE_ERROR(...)   vsf_trace_error(__VA_ARGS__)
 

Functions

void vsf_test_appcfg_data_init (vsf_test_data_t *data)
 Initialize the appcfg for data synchronization.
 
void vsf_test_appcfg_data_sync (vsf_test_data_t *data, vsf_test_data_cmd_t index)
 Synchronize data via appcfg command interface.
 
bool vsf_test_appcfg_read_case_result (uint32_t idx, uint32_t *result, char *name, size_t name_size)
 公开函数:读取测试用例结果和名字
 

Macro Definition Documentation

◆ __VSF_TEST_APPCFG_TRACE_INFO

#define __VSF_TEST_APPCFG_TRACE_INFO (   ...)    vsf_trace_info(__VA_ARGS__)

◆ __VSF_TEST_APPCFG_TRACE_DEBUG

#define __VSF_TEST_APPCFG_TRACE_DEBUG (   ...)    vsf_trace_debug(__VA_ARGS__)

◆ __VSF_TEST_APPCFG_TRACE_ERROR

#define __VSF_TEST_APPCFG_TRACE_ERROR (   ...)    vsf_trace_error(__VA_ARGS__)

Function Documentation

◆ vsf_test_appcfg_data_init()

void vsf_test_appcfg_data_init ( vsf_test_data_t data)

Initialize the appcfg for data synchronization.

Parameters
[in]dataa pointer to structure vsf_test_data_t
Note
Its default implementation is an empty weak function, which the user can re-implement as needed. After initialization, we need to make sure that appcfg command can be used properly.

◆ vsf_test_appcfg_data_sync()

void vsf_test_appcfg_data_sync ( vsf_test_data_t data,
vsf_test_data_cmd_t  cmd 
)

Synchronize data via appcfg command interface.

Parameters
[in]dataa pointer to structure vsf_test_data_t
[in]cmdstructure vsf_test_data_cmd_t
Note
This is a synchronized blocking API using appcfg command.

◆ vsf_test_appcfg_read_case_result()

bool vsf_test_appcfg_read_case_result ( uint32_t  idx,
uint32_t result,
char *  name,
size_t  name_size 
)

公开函数:读取测试用例结果和名字

Read test case result and name from appcfg.

Generated from commit: vsfteam/vsf@b2e9e8a