summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/main_test.cpp
blob: 2e0fbe2b4314f6070821bf8ed61a6783c92eaa0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2010-2019 Branimir Karadzic. All rights reserved.
 * License: https://github.com/bkaradzic/bx#license-bsd-2-clause
 */

#include "test.h"

int runAllTests(int _argc, const char* _argv[]);

#if BX_PLATFORM_ANDROID
#	include <android/native_activity.h>

static const char* s_argv[] = { "bx.test" };

void ANativeActivity_onCreate(ANativeActivity*, void*, size_t)
{
	exit(runAllTests(BX_COUNTOF(s_argv), s_argv) );
}
#else
int main(int _argc, const char* _argv[])
{
	return runAllTests(_argc, _argv);
}
#endif // BX_PLATFORM