[gtest] First commit of gtest, and first UT for SaveStorageValue() function
* Include README.md with some basic information about preparing the setup * UT for SaveStorageValue() function
This commit is contained in:
parent
a16cf8c140
commit
45776a651c
1 changed files with 187 additions and 0 deletions
40
gtest/raylib_compile_gtest.bat
Normal file
40
gtest/raylib_compile_gtest.bat
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
::@echo off
|
||||
:: .
|
||||
:: Compile your test using : raylib_compile_gtest.bat core_ut.cpp
|
||||
:: .
|
||||
:: > Setup required Environment
|
||||
:: -------------------------------------
|
||||
set GTEST_INCLUDE_DIR=C:\GitHub\googletest\googletest\include\
|
||||
set GTEST_LIB=C:\GitHub\googletest\mybuild\lib\libgtest.a
|
||||
set GTEST_LIB_MAIN=C:\GitHub\googletest\mybuild\lib\libgtest_main.a
|
||||
|
||||
:: Get full filename path for input file %1
|
||||
set FILENAME=%~f1
|
||||
set NAMEPART=%FILENAME:~0,-4%
|
||||
cd %~dp0
|
||||
:: .
|
||||
:: > Cleaning latest build
|
||||
:: ---------------------------
|
||||
cmd /c if exist %NAMEPART%.exe del /F %NAMEPART%.exe
|
||||
|
||||
:: > Compiling program
|
||||
:: --------------------------
|
||||
|
||||
g++ -c %NAMEPART%.cpp -I%GTEST_INCLUDE_DIR%
|
||||
|
||||
:: .
|
||||
:: > Linking program
|
||||
:: --------------------------
|
||||
:: -s : Remove all symbol table and relocation information from the executable
|
||||
:: -O2 : Optimization Level 2, this option increases both compilation time and the performance of the generated code
|
||||
:: -std=c99 : Use C99 language standard
|
||||
:: -Wall : Enable all compilation Warnings
|
||||
|
||||
g++ -pthread -o %NAMEPART%.exe %NAMEPART%.o %GTEST_LIB% %GTEST_LIB_MAIN% -lraylib -lopengl32 -lgdi32 -lwinmm -std=c99 -Wall
|
||||
:: .
|
||||
:: > Executing program
|
||||
:: -------------------------
|
||||
cmd /c if exist %NAMEPART%.exe %NAMEPART%.exe
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in a new issue