Commit a2f86f24 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add test

parent d3b018dd
Pipeline #118211 passed with stages
in 5 minutes and 50 seconds
......@@ -29,4 +29,15 @@ add_test(NAME TestFileGeneratorClassConfigDataStream
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
set(CONFIG_PDATA_NESTED_CALL ${CMAKE_CURRENT_SOURCE_DIR}/PNestedCall.pdata)
add_test(NAME TestFileGeneratorClassConfigNested
COMMAND ${FILE_GENERATOR_PROGRAM} class -c ${CONFIG_PDATA_NESTED_CALL}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_test(NAME TestFileGeneratorClassConfigDataStreamNested
COMMAND ${FILE_GENERATOR_PROGRAM} class -c ${CONFIG_PDATA_NESTED_CALL} -s
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
#include <string>
#include <vector>
///@brief Nested string or variable call
PNestedStr{
///String which can be a call to an other variable or a simple string
std::string value;
///True if the PNestedStr calls a variable
bool isVarCall;
}
///@brief Class used to parse nested call variables
PNestedCall{
///Name of the Variable
std::string name;
///Vector of PNestedStr
std::vector<PNestedStr> vecNestedStr;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment