diff options
Added googletest based tests
1 files changed, 51 insertions, 0 deletions
| -rw-r--r-- | JSImpl/test/genie.lua | 51 |
diff --git a/JSImpl/test/genie.lua b/JSImpl/test/genie.lua new file mode 100644 index 0000000..c46b4a8 --- /dev/null +++ b/JSImpl/test/genie.lua @@ -0,0 +1,51 @@ +project 'Test' + kind 'ConsoleApp' + language 'C++' + uuid(os.uuid('Test')) + + files '*.cpp' + + includedirs { + 'googletest/googletest/include', + 'googletest/googlemock/include', + '../JSImpl/googlemock/include', + } + links { + 'gtest', + 'gmock', + 'gtest_main', + 'pthread', + } + +project 'gtest' + kind 'StaticLib' + language 'C++' + uuid(os.uuid('gtest')) + files 'googletest/googletest/src/gtest-all.cc' + files 'googletest/googletest/include/gtest/*.h' + includedirs { + 'googletest/googletest', + 'googletest/googletest/include', + } + +project 'gmock' + kind 'StaticLib' + language 'C++' + uuid(os.uuid('gmock')) + files 'googletest/googlemock/src/gmock-all.cc' + files 'googletest/googlemock/include/gmock/*.h' + includedirs { + 'googletest/googlemock', + 'googletest/googlemock/include', + 'googletest/googletest/include', + } + +project 'gtest_main' + kind 'StaticLib' + language 'C++' + uuid(os.uuid('gtest_main')) + files 'googletest/googletest/src/gtest_main.cc' + includedirs { + 'googletest/googletest', + 'googletest/googletest/include', + } |
