Core test (#4006)
* core tests * clang * vcpkg test * dswsw * first take on the vcpkg * vcpkg * get vcpkg version * fix cmake * separators * vcpkg * vcpkg * test1 * disable verify agent od * put back verify * put back yml
This commit is contained in:
parent
67d6bd167e
commit
6fc0ba7d72
@ -39,6 +39,7 @@ extends:
|
||||
AdditionalArguments: ${{ parameters.AdditionalArguments }}
|
||||
EnvVars: ${{ parameters.EnvVars}}
|
||||
InstallLanguageSteps:
|
||||
- template: /eng/pipelines/templates/steps/vcpkg-clone.yml
|
||||
- template: /eng/pipelines/templates/steps/vcpkg.yml
|
||||
#/eng/pipelines/templates/steps/vcpkg-clone.yml
|
||||
parameters:
|
||||
RepoOwner: Microsoft
|
||||
|
||||
@ -38,8 +38,16 @@ target_include_directories(
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
|
||||
)
|
||||
|
||||
if(DEFINED ENV{VCPKG-AZURE-CORE-CPP})
|
||||
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")
|
||||
|
||||
|
||||
@ -19,7 +19,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(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user