Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core test #4006

Merged
merged 20 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion sdk/core/perf/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,16 @@ target_include_directories(
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
)

if(DEFINED ENV{VCPKG-AZURE-CORE-CPP})
LarryOsterman marked this conversation as resolved.
Show resolved Hide resolved
find_package(azure-core-cpp $ENV{VCPKG-AZURE-CORE-CPP} EXACT)
add_compile_definitions(VCPKG_CORE_VERSION="$ENV{VCPKG-AZURE-CORE-CPP}")
else()
add_compile_definitions(VCPKG_CORE_VERSION="source")
endif()


# link the `azure-perf` lib together with any other library which will be used for the tests.
target_link_libraries(azure-perf-test PRIVATE azure-core azure-perf)
target_link_libraries(azure-perf-test PRIVATE Azure::azure-core azure-perf)
# Make sure the project will appear in the test folder for Visual Studio CMake view
set_target_properties(azure-perf-test PROPERTIES FOLDER "Tests/Core")

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/perf/test/src/perf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

int main(int argc, char** argv)
{

std::cout << "AZURE-CORE-CPP VERSION " << VCPKG_CORE_VERSION << std::endl;
// Create the test list
std::vector<Azure::Perf::TestMetadata> tests{
Azure::Perf::Test::NoOp::GetTestMetadata(),
Expand Down