protot/3rdparty/bx/tests/main_test.cpp

25 lines
538 B
C++
Raw Normal View History

2016-11-10 21:53:08 +01:00
/*
2018-02-03 17:39:28 +01:00
* Copyright 2010-2018 Branimir Karadzic. All rights reserved.
2016-11-10 21:53:08 +01:00
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
#include "test.h"
static const char* s_argv[] = { "bx.test" };
2017-04-11 08:16:10 +02:00
int runAllTests(int _argc, const char* _argv[]);
2016-11-10 21:53:08 +01:00
#if BX_PLATFORM_ANDROID
# include <android/native_activity.h>
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