diff options
author | ArnoldZokas <arnold.zokas@coderoom.net> | 2010-11-30 22:32:46 +0000 |
---|---|---|
committer | ArnoldZokas <arnold.zokas@coderoom.net> | 2010-11-30 22:32:46 +0000 |
commit | 1bbc226f92c600799035c0b367e8a6495b64d44f (patch) | |
tree | af4ee57c69b3bf85aaa456904e5369d2a32dad3e | |
parent | 4f34cc21e000e2036f0bc078d1ea153b7ccde542 (diff) | |
download | protobuf-1bbc226f92c600799035c0b367e8a6495b64d44f.tar.gz protobuf-1bbc226f92c600799035c0b367e8a6495b64d44f.tar.bz2 protobuf-1bbc226f92c600799035c0b367e8a6495b64d44f.zip |
Migrated target 'RunBenchmarks'
-rw-r--r-- | build/Common.targets | 8 | ||||
-rw-r--r-- | build/build.csproj | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/build/Common.targets b/build/Common.targets index 067bb28c..1afdc823 100644 --- a/build/Common.targets +++ b/build/Common.targets @@ -30,7 +30,7 @@ </Target> <Target Name="_Test" DependsOnTargets="_CompileGeneratedSource"> - <Exec Command=""E:\dotnet-protobufs\lib\NUnit 2.2.8.0\nunit-console.exe" %(TestContainer.Identity) /xml:$(BuildOutputDirectory)\%(TestContainer.Filename).$(BuildConfiguration).xml" /> + <Exec Command=""$(NUnitExePath)" %(TestContainer.Identity) /xml:$(BuildOutputDirectory)\%(TestContainer.Filename).$(BuildConfiguration).xml" /> </Target> <Target Name="_PreparePackageComponent"> @@ -42,7 +42,7 @@ <Delete Files="@(ExistingArchives)" /> <Copy SourceFiles="@(StaticPackageItem)" DestinationFolder="$(BuildOutputDirectory)\%(StaticPackageItem.TargetDirectory)\%(StaticPackageItem.RecursiveDir)" /> - <Exec Command=""E:\dotnet-protobufs\lib\7-Zip 9.20\7za.exe" a -tzip $(PackageName) * -r" WorkingDirectory="$(BuildOutputDirectory)" /> + <Exec Command=""$(ZipExePath)" a -tzip $(PackageName) * -r" WorkingDirectory="$(BuildOutputDirectory)" /> <ItemGroup><DirectoriesToDelete Include="$([System.IO.Directory]::GetDirectories('$(BuildOutputDirectory)'))" /></ItemGroup> <ItemGroup><FilesToDelete Include="$(BuildOutputDirectory)\**\*.*" Exclude="$(BuildOutputDirectory)\$(PackageName)" /></ItemGroup> @@ -51,4 +51,8 @@ <RemoveDir Directories="@(DirectoriesToDelete)" ContinueOnError="true" /> </Target> + <Target Name="_RunBenchmarks"> + <Exec Command=""$(ProtoBenchExePath)" Google.ProtocolBuffers.ProtoBench.SizeMessage1,BenchmarkTypes $(ProjectDirectory)\benchmarks\google_message1.dat > "$(BuildTempDirectory)\BenchmarkResults.txt"" /> + </Target> + </Project>
\ No newline at end of file diff --git a/build/build.csproj b/build/build.csproj index 9591cf81..845a85aa 100644 --- a/build/build.csproj +++ b/build/build.csproj @@ -19,7 +19,9 @@ <!--Tool Paths--> <ProtocExePath>$(LibDirectory)\protoc.exe</ProtocExePath> <ProtogenExePath>$(SourceDirectory)\ProtoGen\bin\$(BuildConfiguration)\protogen.exe</ProtogenExePath> + <ProtoBenchExePath>$(SourceDirectory)\ProtoBench\bin\$(BuildConfiguration)\ProtoBench.exe</ProtoBenchExePath> <NUnitExePath>$(LibDirectory)\NUnit 2.2.8.0\nunit-console.exe</NUnitExePath> + <ZipExePath>$(LibDirectory)\7-Zip 9.20\7za.exe</ZipExePath> </PropertyGroup> <Import Project="Common.targets"/> @@ -94,6 +96,6 @@ <Target Name="Build" DependsOnTargets="_Compile;_Test" /> <Target Name="PreparePackageComponent" DependsOnTargets="_PreparePackageComponent" /> <Target Name="GeneratePackage" DependsOnTargets="_GeneratePackage" /> - <Target Name="RunBenchmarks" /> + <Target Name="RunBenchmarks" DependsOnTargets="_RunBenchmarks" /> </Project> |