|
@ -3,6 +3,16 @@ |
|
|
#include "gtest/gtest.h" |
|
|
#include "gtest/gtest.h" |
|
|
|
|
|
|
|
|
TEST(FFI, metadata) { |
|
|
TEST(FFI, metadata) { |
|
|
|
|
|
EXPECT_STRNE(get_author(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_git_tag(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_version(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_commit_id(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_build_time(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_git_branch(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_project_url(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_system_info(), ""); |
|
|
|
|
|
EXPECT_STRNE(get_compiler_info(), ""); |
|
|
|
|
|
|
|
|
EXPECT_STREQ(get_author(), AUTHOR); |
|
|
EXPECT_STREQ(get_author(), AUTHOR); |
|
|
EXPECT_STREQ(get_git_tag(), GIT_TAG_ID); |
|
|
EXPECT_STREQ(get_git_tag(), GIT_TAG_ID); |
|
|
EXPECT_STREQ(get_version(), VERSION_STR); |
|
|
EXPECT_STREQ(get_version(), VERSION_STR); |
|
|