Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requested
authorLoic Blot <loic.blot@unix-experience.fr>
Tue, 24 Feb 2015 07:56:52 +0000 (08:56 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Tue, 24 Feb 2015 07:56:52 +0000 (08:56 +0100)
src/main.cpp
util/travis/script.sh

index 33cb34f68fbbb900c8b3dd14bc407254813e2dfb..922effb1f38af57b2a87dc3e80553c275723d6b8 100644 (file)
@@ -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)"))));
index 437cf1ac524b1cc28101063ac00600639240cd63..35a62f16eeff6d0c34919c1815e340547295fa85 100755 (executable)
@@ -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