File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ int main(int argc, char *argv[])
266
266
267
267
#ifndef __ANDROID__
268
268
// Run unit tests
269
- if (cmd_args.getFlag (" do -unittests" )) {
269
+ if (cmd_args.getFlag (" run -unittests" )) {
270
270
run_tests ();
271
271
return 0 ;
272
272
}
@@ -339,7 +339,7 @@ static void set_allowed_options(OptionList *allowed_options)
339
339
_ (" Load configuration from specified file" ))));
340
340
allowed_options->insert (std::make_pair (" port" , ValueSpec (VALUETYPE_STRING,
341
341
_ (" 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,
343
343
_ (" Run the unit tests and exit" ))));
344
344
allowed_options->insert (std::make_pair (" map-dir" , ValueSpec (VALUETYPE_STRING,
345
345
_ (" Same as --world (deprecated)" ))));
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ if [ $WINDOWS = "no" ]; then
6
6
cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DCMAKE_BUILD_TYPE=Debug ..
7
7
make -j2
8
8
echo " Running unit tests for minetest"
9
- ../bin/minetest --do -unittests
9
+ ../bin/minetest --run -unittests
10
10
echo " Running unit tests for minetestserver"
11
- ../bin/minetestserver --do -unittests
11
+ ../bin/minetestserver --run -unittests
12
12
else
13
13
[ $CC = " clang" ] && exit 1 # Not supposed to happen
14
14
# We need to have our build directory outside of the minetest directory because
You can’t perform that action at this time.
0 commit comments