diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-19 09:38:01 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-21 11:04:19 +0100 |
commit | b3aeba684b4e27e9fdf2c07949750bb567e40d6b (patch) | |
tree | 73a97bc7d155174523cac1999274348c5e3d1b30 /src/CMakeLists.txt | |
parent | 38e62805527b774e478617d9781bde72ce2bdcb9 (diff) | |
download | minetest-b3aeba684b4e27e9fdf2c07949750bb567e40d6b.tar.gz minetest-b3aeba684b4e27e9fdf2c07949750bb567e40d6b.tar.bz2 minetest-b3aeba684b4e27e9fdf2c07949750bb567e40d6b.zip |
Unit tests must be done at integration process.
* Remove --enable-unittests and --disable-unittests and add --do-unittests function
* --do-unittests function will exit 0 on success.
* minetest and minetestserver binaries are launched with --do-unittests in travis build.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 929dbacad..ce1cc30bf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -355,6 +355,10 @@ add_subdirectory(jthread) add_subdirectory(script) add_subdirectory(util) +set (unittests_SRCS + test.cpp +) + set(common_SRCS ban.cpp base64.cpp @@ -422,7 +426,6 @@ set(common_SRCS sound.cpp staticobject.cpp subgame.cpp - test.cpp tool.cpp treegen.cpp version.cpp @@ -435,6 +438,7 @@ set(common_SRCS ${JTHREAD_SRCS} ${common_SCRIPT_SRCS} ${UTIL_SRCS} + ${unittests_SRCS} ) # This gives us the icon and file version information |