diff options
Diffstat (limited to 'render-test')
-rw-r--r-- | render-test/include/mbgl/render_test.hpp | 9 | ||||
-rw-r--r-- | render-test/render_test.cpp (renamed from render-test/main.cpp) | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/render-test/include/mbgl/render_test.hpp b/render-test/include/mbgl/render_test.hpp new file mode 100644 index 0000000000..42a539603d --- /dev/null +++ b/render-test/include/mbgl/render_test.hpp @@ -0,0 +1,9 @@ +#pragma once + +#include <mbgl/util/util.hpp> + +namespace mbgl { + +MBGL_EXPORT int runRenderTests(int argc, char* argv[]); + +} // namespace mbgl diff --git a/render-test/main.cpp b/render-test/render_test.cpp index 6f5e2449a9..bac193237d 100644 --- a/render-test/main.cpp +++ b/render-test/render_test.cpp @@ -1,7 +1,8 @@ #include "allocation_index.hpp" -#include <mbgl/util/run_loop.hpp> +#include <mbgl/render_test.hpp> #include <mbgl/util/io.hpp> +#include <mbgl/util/run_loop.hpp> #include "metadata.hpp" #include "parser.hpp" @@ -36,7 +37,9 @@ void operator delete(void* ptr, size_t) noexcept { } #endif -int main(int argc, char** argv) { +namespace mbgl { + +int runRenderTests(int argc, char** argv) { bool recycleMap; bool shuffle; uint32_t seed; @@ -160,3 +163,5 @@ int main(int argc, char** argv) { return stats.failedTests + stats.erroredTests == 0 ? 0 : 1; } + +} // namespace mbgl
\ No newline at end of file |