mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 14:35:37 +02:00
2
tests_cdc_stream/.gitignore
vendored
Normal file
2
tests_cdc_stream/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
x64/*
|
||||
*.user
|
||||
51
tests_cdc_stream/BUILD
Normal file
51
tests_cdc_stream/BUILD
Normal file
@@ -0,0 +1,51 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# Using a cc_binary rule here to avoid that this test is included when running
|
||||
# test from bazel directly. This target is just a convenience target for all the
|
||||
# unit tests in the scope run from Visual Studio, thus running the following
|
||||
# command would execute all tests twice:
|
||||
#
|
||||
# bazel test --build_tests_only //...
|
||||
#
|
||||
# To run this target with Bazel directly, just use "bazel run" instead of
|
||||
# "bazel test".
|
||||
cc_binary(
|
||||
name = "tests_cdc_stream",
|
||||
testonly = True,
|
||||
srcs = [
|
||||
"//cdc_fuse_fs:all_test_sources",
|
||||
"//cdc_stream:all_test_sources",
|
||||
"//data_store:all_test_sources",
|
||||
"//manifest:all_test_sources",
|
||||
"//metrics:all_test_sources",
|
||||
],
|
||||
data = [
|
||||
"//cdc_stream:all_test_data",
|
||||
"//manifest:all_test_data",
|
||||
],
|
||||
deps = [
|
||||
"//cdc_fuse_fs:asset",
|
||||
"//cdc_fuse_fs:cdc_fuse_fs_lib_mocked",
|
||||
"//cdc_fuse_fs:mock_config_stream_client",
|
||||
"//cdc_stream:metrics_recorder",
|
||||
"//cdc_stream:multi_session",
|
||||
"//common:test_main",
|
||||
"//common:testing_clock",
|
||||
"//data_store:data_provider",
|
||||
"//data_store:disk_data_store",
|
||||
"//data_store:mem_data_store",
|
||||
"//manifest:content_id",
|
||||
"//manifest:fake_manifest_builder",
|
||||
"//manifest:manifest_builder",
|
||||
"//manifest:manifest_iterator",
|
||||
"//manifest:manifest_printer",
|
||||
"//manifest:manifest_proto_defs",
|
||||
"//manifest:manifest_test_base",
|
||||
"//manifest:manifest_updater",
|
||||
"//metrics",
|
||||
"//metrics:enums",
|
||||
"//metrics:messages",
|
||||
],
|
||||
)
|
||||
70
tests_cdc_stream/tests_cdc_stream.vcxproj
Normal file
70
tests_cdc_stream/tests_cdc_stream.vcxproj
Normal file
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{2B36A6AA-FD11-4F77-A79B-29A3B185E701}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>tests_cdc_stream</RootNamespace>
|
||||
<WindowsTargetPlatformVersion Condition="$(VisualStudioVersion) == 15">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion Condition="$(VisualStudioVersion) == 16">10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)bazel-out\x64_windows-opt\bin\tests_cdc_stream\</OutDir>
|
||||
<NMakePreprocessorDefinitions>UNICODE</NMakePreprocessorDefinitions>
|
||||
<AdditionalOptions>/std:c++17</AdditionalOptions>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(SolutionDir)bazel-out\x64_windows-dbg\bin\tests_cdc_stream\</OutDir>
|
||||
<NMakePreprocessorDefinitions>UNICODE</NMakePreprocessorDefinitions>
|
||||
<AdditionalOptions>/std:c++17</AdditionalOptions>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset Condition="$(VisualStudioVersion) == 15">v141</PlatformToolset>
|
||||
<PlatformToolset Condition="$(VisualStudioVersion) == 16">v142</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset Condition="$(VisualStudioVersion) == 15">v141</PlatformToolset>
|
||||
<PlatformToolset Condition="$(VisualStudioVersion) == 16">v142</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="Shared">
|
||||
<Import Project="..\all_files.vcxitems" Label="Shared" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<!-- Prevent console from being closed -->
|
||||
<ItemDefinitionGroup>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<!-- Bazel setup -->
|
||||
<PropertyGroup>
|
||||
<BazelTargets>//tests_cdc_stream</BazelTargets>
|
||||
<BazelOutputFile>tests_cdc_stream.exe</BazelOutputFile>
|
||||
<BazelIncludePaths>..\;..\third_party\absl;..\bazel-cdc-file-transfer\external\com_github_jsoncpp\include;..\bazel-cdc-file-transfer\external\com_github_blake3\c;..\third_party\googletest\googletest\include;..\bazel-cdc-file-transfer\external\com_google_protobuf\src;..\bazel-cdc-file-transfer\external\com_github_grpc_grpc\include;..\bazel-out\x64_windows-dbg\bin;$(VC_IncludePath);$(WindowsSDK_IncludePath)</BazelIncludePaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\NMakeBazelProject.targets" />
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user