FMI Library: part of JModelica.org
Functions | Variables
fmi2_xml_parsing_test.c File Reference
#include <stdlib.h>
#include <fmilib.h>
#include <stdio.h>
#include "config_test.h"

Go to the source code of this file.

Functions

charconcat (char *s1, char *s2)
 
void importlogger (jm_callbacks *c, jm_string module, jm_log_level_enu_t log_level, jm_string message)
 
void test_parser (char *xml_dir, int should_not_log_expected_msg, int configuration)
 
void fail_name_check (char *xml_dir)
 
void pass_name_check (char *xml_dir)
 
void parser_log_expected_message (char *xml_dir)
 
void test_variable_naming_conventions (void)
 
int main (int argc, char *argv[])
 

Variables

static const int SHOULD_NOT_LOG_EXPECTED_MSG = 0
 
static const int SHOULD_LOG_EXPECTED_MSG = 1
 
static int did_not_log_expected_msg
 
static charexpected_message = "Invalid structured ScalarVariable name"
 
static charname_check_test_directory
 

Function Documentation

char* concat ( char s1,
char s2 
)

Definition at line 13 of file fmi2_xml_parsing_test.c.

void importlogger ( jm_callbacks c,
jm_string  module,
jm_log_level_enu_t  log_level,
jm_string  message 
)

Definition at line 27 of file fmi2_xml_parsing_test.c.

void test_parser ( char xml_dir,
int  should_not_log_expected_msg,
int  configuration 
)

Definition at line 36 of file fmi2_xml_parsing_test.c.

void fail_name_check ( char xml_dir)

Definition at line 71 of file fmi2_xml_parsing_test.c.

void pass_name_check ( char xml_dir)

Definition at line 77 of file fmi2_xml_parsing_test.c.

void parser_log_expected_message ( char xml_dir)

Definition at line 82 of file fmi2_xml_parsing_test.c.

void test_variable_naming_conventions ( void  )

Definition at line 87 of file fmi2_xml_parsing_test.c.

int main ( int  argc,
char argv[] 
)

Definition at line 163 of file fmi2_xml_parsing_test.c.

Variable Documentation

const int SHOULD_NOT_LOG_EXPECTED_MSG = 0
static

Definition at line 6 of file fmi2_xml_parsing_test.c.

const int SHOULD_LOG_EXPECTED_MSG = 1
static

Definition at line 7 of file fmi2_xml_parsing_test.c.

int did_not_log_expected_msg
static

Definition at line 9 of file fmi2_xml_parsing_test.c.

char* expected_message = "Invalid structured ScalarVariable name"
static

Definition at line 10 of file fmi2_xml_parsing_test.c.

char* name_check_test_directory
static

Definition at line 11 of file fmi2_xml_parsing_test.c.