8 #ifndef _A_UTILS_TESTBENCH_COMPILE_TEST_HEADER_INCLUDED_
9 #define _A_UTILS_TESTBENCH_COMPILE_TEST_HEADER_INCLUDED_
12 static const tInt PLATFORM_IDENTIFIER = 0;
14 static const tInt PLATFORM_IDENTIFIER = 1;
17 #ifdef CMAKE_DEFAULT_COMMAND_SET
20 #define CMAKE_DEFAULT_COMMAND_SET "cmake"
101 static const tChar*
const default_generator();
139 template<tInt Generator = CCT_GENERATOR_DEFAULT>
142 return SetUp(std::move(i_strTargetName),
195 static const tChar*
const default_generator() {
return "Visual Studio 15 2017 Win64"; }
200 static const tChar*
const default_generator() {
return "Unix Makefiles"; }
205 static const tChar*
const current()
213 #ifdef CMAKE_DEFAULT_GENERATOR_SET
214 static const tChar*
const current() {
return CMAKE_DEFAULT_GENERATOR_SET; }
216 static const tChar*
const current()
231 static const tChar*
const default_generator() {
return "Visual Studio 14 2015 Win64"; }
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
Implements basic functionality to test whether compile process fails (or succeeds)
tBool BuildTarget(A_UTILS_NS::cString &&i_strTargetName)
Build a target from the cmake project.
cCompileTimeTest(A_UTILS_NS::cFilename &&i_strProjectPath, A_UTILS_NS::cFilename &&i_strCmakeCommand=CMAKE_DEFAULT_COMMAND_SET)
Constructor.
const A_UTILS_NS::cFilename m_strProjectPath
path to project containing targets to build
tBool TearDown()
Deletes the entire build directory (automatically called on destruction).
A_UTILS_NS::cString GetAdtfDir() const
Get directory to ADTF installation which is under test in the current test bench.
tBool SetUp(A_UTILS_NS::cString &&i_strTargetName)
Generate build files and initially build a target.
eCCTCMakeGenerators
All currently supported CMake generators. Usable in tBool cCompileTimeTest::SetUp()
@ CCT_GENERATOR_UNIX_MAKEFILES
"Unix Makefiles" (Linux only)
@ CCT_GENERATOR_VS15_WIN64
"Visual Studio 15 2017 Win64" (Win64 only)
@ CCT_GENERATOR_PLATFORM_DEFAULT
Default generator (Linux: "Unix Makefiles", Win64: "Visual Studio 12 2013 Win64")
@ CCT_GENERATOR_VS14_WIN64
"Visual Studio 14 2015 Win64" (Win64 only)
@ CCT_GENERATOR_DEFAULT
The same generator this project was generated with.
const A_UTILS_NS::cString & GetOutput() const
Get the console output of the last executed command.
A_UTILS_NS::cString GetBuildDir() const
Get the current build directory.
A_UTILS_NS::cString m_strConsoleOut
Contains output of the last executed command.
~cCompileTimeTest()
Destructor.
tBool SetUp(A_UTILS_NS::cString &&i_strTargetName, A_UTILS_NS::cString &&i_strGenerator)
Generate build files and initially build a target.
const A_UTILS_NS::cFilename m_strCmakeCommand
path to cmake executable to use
"stringify" the cmake generator