summaryrefslogtreecommitdiff
path: root/platform/android/src/test/render_test_runner.cpp
blob: 0d08d130eb4d517016002992866ac484cd275850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <mbgl/render_test.hpp>
#include "runtime.hpp"

#include <string>

int main(int argc, char *argv[]) {
    if (!mbgl::android::initRuntime(argc, argv)) {
        return 1;
    }

    for (int i = 1; i < argc; ++i) {
        const std::string arg{argv[i]};
        std::string kClassPathCommand("--class_path=");
        if (arg.compare(0, kClassPathCommand.length(), kClassPathCommand) == 0) {
            // Remove this item from the list
            argv[i][0] = 0;
        }
    }

    return mbgl::runRenderTests(argc, argv);
}