Skip to content

Commit b4acac7

Browse files
committedFeb 24, 2015
Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requested
1 parent 577701c commit b4acac7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ int main(int argc, char *argv[])
266266

267267
#ifndef __ANDROID__
268268
// Run unit tests
269-
if (cmd_args.getFlag("do-unittests")) {
269+
if (cmd_args.getFlag("run-unittests")) {
270270
run_tests();
271271
return 0;
272272
}
@@ -339,7 +339,7 @@ static void set_allowed_options(OptionList *allowed_options)
339339
_("Load configuration from specified file"))));
340340
allowed_options->insert(std::make_pair("port", ValueSpec(VALUETYPE_STRING,
341341
_("Set network port (UDP)"))));
342-
allowed_options->insert(std::make_pair("do-unittests", ValueSpec(VALUETYPE_FLAG,
342+
allowed_options->insert(std::make_pair("run-unittests", ValueSpec(VALUETYPE_FLAG,
343343
_("Run the unit tests and exit"))));
344344
allowed_options->insert(std::make_pair("map-dir", ValueSpec(VALUETYPE_STRING,
345345
_("Same as --world (deprecated)"))));

‎util/travis/script.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ if [ $WINDOWS = "no" ]; then
66
cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DCMAKE_BUILD_TYPE=Debug ..
77
make -j2
88
echo "Running unit tests for minetest"
9-
../bin/minetest --do-unittests
9+
../bin/minetest --run-unittests
1010
echo "Running unit tests for minetestserver"
11-
../bin/minetestserver --do-unittests
11+
../bin/minetestserver --run-unittests
1212
else
1313
[ $CC = "clang" ] && exit 1 # Not supposed to happen
1414
# We need to have our build directory outside of the minetest directory because

0 commit comments

Comments
 (0)
Please sign in to comment.