MySQL  8.0.19
Source Code Documentation
test_system_variable_source.cc File Reference

Macros

#define MAX_BUFFER_LENGTH   100
 
#define WRITE_LOG(lit_log_text)
 

Functions

 REQUIRES_SERVICE_PLACEHOLDER (system_variable_source)
 
static mysql_service_status_t test_system_variable_source_init ()
 This file contains a test (example) component, which tests the services of "system_variable_source" service provided by "mysql_server" component. More...
 
static mysql_service_status_t test_system_variable_source_deinit ()
 De-initialization method for Component. More...
 
 END_COMPONENT_PROVIDES ()
 
 REQUIRES_SERVICE (system_variable_source)
 
 END_COMPONENT_REQUIRES ()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 METADATA ("test_system_variable_source", "1")
 
 END_COMPONENT_METADATA ()
 

Variables

int log_text_len = 0
 
char log_text [MAX_BUFFER_LENGTH]
 
FILE * outfile
 
const char * filename = "test_system_variable_source.log"
 
mysql_component_t mysql_component_test_system_variable_source
 

Macro Definition Documentation

◆ MAX_BUFFER_LENGTH

#define MAX_BUFFER_LENGTH   100

◆ WRITE_LOG

#define WRITE_LOG (   lit_log_text)
Value:
log_text_len = sprintf(log_text, "%s", lit_log_text); \
fwrite((uchar *)log_text, sizeof(char), log_text_len, outfile)

Function Documentation

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ END_COMPONENT_REQUIRES()

END_COMPONENT_REQUIRES ( )

◆ METADATA() [1/3]

METADATA ( "mysql.author"  ,
"Oracle Corporation"   
)

◆ METADATA() [2/3]

METADATA ( "mysql.license"  ,
"GPL"   
)

◆ METADATA() [3/3]

METADATA ( "test_system_variable_source"  ,
"1"   
)

◆ REQUIRES_SERVICE()

REQUIRES_SERVICE ( system_variable_source  )

◆ REQUIRES_SERVICE_PLACEHOLDER()

REQUIRES_SERVICE_PLACEHOLDER ( system_variable_source  )

◆ test_system_variable_source_deinit()

static mysql_service_status_t test_system_variable_source_deinit ( )
static

De-initialization method for Component.

◆ test_system_variable_source_init()

static mysql_service_status_t test_system_variable_source_init ( )
static

This file contains a test (example) component, which tests the services of "system_variable_source" service provided by "mysql_server" component.

Initialization entry method for test component. It executes the tests of the service.

Variable Documentation

◆ filename

const char* filename = "test_system_variable_source.log"

◆ log_text

char log_text[MAX_BUFFER_LENGTH]

◆ log_text_len

int log_text_len = 0

◆ mysql_component_test_system_variable_source

mysql_component_t mysql_component_test_system_variable_source
Initial value:
= { "mysql:test_system_variable_source" , __test_system_variable_source_provides, __test_system_variable_source_requires, __test_system_variable_source_metadata,

◆ outfile

FILE* outfile
log_text
char log_text[MAX_BUFFER_LENGTH]
Definition: test_system_variable_source.cc:34
test_system_variable_source_deinit
static mysql_service_status_t test_system_variable_source_deinit()
De-initialization method for Component.
Definition: test_system_variable_source.cc:110
uchar
unsigned char uchar
Definition: my_inttypes.h:51
log_text_len
int log_text_len
Definition: test_system_variable_source.cc:33
test_system_variable_source_init
static mysql_service_status_t test_system_variable_source_init()
This file contains a test (example) component, which tests the services of "system_variable_source" s...
Definition: test_system_variable_source.cc:53
outfile
FILE * outfile
Definition: test_system_variable_source.cc:35