diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-24 08:56:52 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-24 08:56:52 +0100 |
commit | b4acac706dae66be3ddc3f0a291097ca175417f7 (patch) | |
tree | ed8ac570cea1a6dc3f3f7096bd07c6afba66e55d | |
parent | 577701cabd6382bb97dc05e9c9244b5ce8202ca3 (diff) | |
download | minetest-b4acac706dae66be3ddc3f0a291097ca175417f7.tar.gz minetest-b4acac706dae66be3ddc3f0a291097ca175417f7.tar.bz2 minetest-b4acac706dae66be3ddc3f0a291097ca175417f7.zip |
Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requested
-rw-r--r-- | src/main.cpp | 4 | ||||
-rwxr-xr-x | util/travis/script.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 33cb34f68..922effb1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -266,7 +266,7 @@ int main(int argc, char *argv[]) #ifndef __ANDROID__ // Run unit tests - if (cmd_args.getFlag("do-unittests")) { + if (cmd_args.getFlag("run-unittests")) { run_tests(); return 0; } @@ -339,7 +339,7 @@ static void set_allowed_options(OptionList *allowed_options) _("Load configuration from specified file")))); allowed_options->insert(std::make_pair("port", ValueSpec(VALUETYPE_STRING, _("Set network port (UDP)")))); - allowed_options->insert(std::make_pair("do-unittests", ValueSpec(VALUETYPE_FLAG, + allowed_options->insert(std::make_pair("run-unittests", ValueSpec(VALUETYPE_FLAG, _("Run the unit tests and exit")))); allowed_options->insert(std::make_pair("map-dir", ValueSpec(VALUETYPE_STRING, _("Same as --world (deprecated)")))); diff --git a/util/travis/script.sh b/util/travis/script.sh index 437cf1ac5..35a62f16e 100755 --- a/util/travis/script.sh +++ b/util/travis/script.sh @@ -6,9 +6,9 @@ if [ $WINDOWS = "no" ]; then cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DCMAKE_BUILD_TYPE=Debug .. make -j2 echo "Running unit tests for minetest" - ../bin/minetest --do-unittests + ../bin/minetest --run-unittests echo "Running unit tests for minetestserver" - ../bin/minetestserver --do-unittests + ../bin/minetestserver --run-unittests else [ $CC = "clang" ] && exit 1 # Not supposed to happen # We need to have our build directory outside of the minetest directory because |