[android] improve test runner by allowing selective execution of tests

This commit is contained in:
Konstantin Käfer
2016-12-21 12:56:34 +01:00
parent ed4e7a1134
commit 20615a2c15
5 changed files with 95 additions and 36 deletions

View File

@@ -1,13 +1,13 @@
public class Main {
public native void runAllTests();
public native void runAllTests(String[] args);
public static void main(String[] args) throws Exception {
//Load the tests
System.loadLibrary("mbgl-test");
//Run the tests
new Main().runAllTests();
new Main().runAllTests(args);
//Exit explicitly otherwise dalvikvm won't quit
System.exit(0);