mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-08 08:24:25 +00:00
* Fixed `render_list` build needs `libm` * Added tests * Updated man page * Created function to set double * Cleaned up / optimized a bit * Removed `--dont-render` option
This commit is contained in:
@ -179,7 +179,7 @@ TEST_CASE("render_old specific", "specific testing")
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("render_old generator", "generator testing")
|
||||
TEST_CASE("render_old min/max int generator", "min/max int generator testing")
|
||||
{
|
||||
std::string option = GENERATE("--max-load", "--max-zoom", "--min-zoom", "--num-threads");
|
||||
|
||||
@ -209,4 +209,13 @@ TEST_CASE("render_old generator", "generator testing")
|
||||
int status = pclose(pipe);
|
||||
REQUIRE(WEXITSTATUS(status) == 1);
|
||||
}
|
||||
|
||||
SECTION("option is not an integer", "should return 1") {
|
||||
std::string command = test_binary + " " + option + " invalid";
|
||||
|
||||
// flawfinder: ignore
|
||||
FILE *pipe = popen(command.c_str(), "r");
|
||||
int status = pclose(pipe);
|
||||
REQUIRE(WEXITSTATUS(status) == 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user