25 lines
655 B
C++
25 lines
655 B
C++
#include <gtest/gtest.h>
|
|
#include <android/log.h>
|
|
|
|
#define LOG_TAG "VavCoreUnitTests"
|
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
|
|
|
int main(int argc, char** argv) {
|
|
LOGI("=== VavCore Android Unit Tests ===");
|
|
LOGI("Starting Google Test framework...");
|
|
|
|
// Initialize Google Test
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
// Run all tests
|
|
int result = RUN_ALL_TESTS();
|
|
|
|
if (result == 0) {
|
|
LOGI("=== All tests passed! ===");
|
|
} else {
|
|
LOGE("=== Some tests failed! ===");
|
|
}
|
|
|
|
return result;
|
|
} |