mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-25 00:25:23 -04:00
Also build and run testsuite on cmake CI tests.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
set (sources_testsuite
|
||||
TestSuite.c
|
||||
)
|
||||
|
||||
if (NOT MSVC)
|
||||
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-static")
|
||||
set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-static")
|
||||
endif ()
|
||||
|
||||
add_executable (TestSuite ${sources_testsuite})
|
||||
target_link_libraries ("TestSuite" "MemoryModule")
|
||||
if (NOT MSVC)
|
||||
set_target_properties ("TestSuite" PROPERTIES SUFFIX ".exe")
|
||||
endif ()
|
||||
@@ -9,6 +9,8 @@ extern BOOL MemoryModuleTestsuite();
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
UNREFERENCED_PARAMETER(argc);
|
||||
UNREFERENCED_PARAMETER(argv);
|
||||
if (!MemoryModuleTestsuite()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user