diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-02 14:11:37 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-05-28 16:11:05 +0200 |
commit | 7f9274035bad30980e03574c315904ab7a85fe83 (patch) | |
tree | 7b9cd0f2e2883d6da22611eaa68fae07bb7245b6 /test/src | |
parent | 33ee7e23de24bd3c076eafef819029cf45451d23 (diff) | |
download | qtlocation-mapboxgl-7f9274035bad30980e03574c315904ab7a85fe83.tar.gz |
[core] refactor program object creation
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/mbgl/test/test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/src/mbgl/test/test.cpp b/test/src/mbgl/test/test.cpp index 1c77aae2a1..30df01c488 100644 --- a/test/src/mbgl/test/test.cpp +++ b/test/src/mbgl/test/test.cpp @@ -1,9 +1,12 @@ #include <mbgl/actor/scheduler.hpp> +#include <mbgl/gfx/backend.hpp> #include <mbgl/test.hpp> #include <mbgl/test/util.hpp> #include <gtest/gtest.h> +#include <args.hxx> + namespace mbgl { int runTests(int argc, char *argv[]) { @@ -12,6 +15,12 @@ int runTests(int argc, char *argv[]) { #endif testing::InitGoogleTest(&argc, argv); + + args::ArgumentParser argumentParser("Unit tests"); + args::ValueFlag<std::string> backendValue(argumentParser, "Backend", "Rendering backend", {"backend"}); + + argumentParser.ParseCLI(argc, argv); + return RUN_ALL_TESTS(); } |