File tree Expand file tree Collapse file tree 9 files changed +32
-25
lines changed Expand file tree Collapse file tree 9 files changed +32
-25
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,10 @@ module Benchmarker =
21
21
let projectJson = testsProjectDirectory @@ " project.json"
22
22
// running benchmarks can timeout so clean up any generated benchmark files
23
23
try
24
- DotNetCli.Restore( fun p ->
25
- { p with
26
- Project = projectJson
27
- })
28
-
29
24
DotNetCli.RunCommand( fun p ->
30
25
{ p with
31
- WorkingDir = testsProjectDirectory
32
- }) " run Benchmark"
26
+ WorkingDir = testsProjectDirectory
27
+ }) " run -f net46 -c Release Benchmark"
33
28
finally
34
29
let benchmarkOutputFiles =
35
30
let output = combinePaths testsProjectDirectory " BenchmarkDotNet.Artifacts"
Original file line number Diff line number Diff line change @@ -67,16 +67,17 @@ module Commandline =
67
67
setEnvironVar " FAKEBUILD" " 1"
68
68
printfn " %A " arguments
69
69
match arguments with
70
- | [] | [ " build" ] | [ " test" ] | [ " clean" ] -> ignore()
70
+ | [] | [ " build" ] | [ " test" ] | [ " clean" ] | [ " benchmark " ] | [ " profile " ] -> ignore()
71
71
| [ " release" ; version] -> setBuildParam " version" version
72
72
73
73
| [ " test" ; testFilter] -> setBuildParam " testfilter" testFilter
74
74
75
- | [ " profile" ; esVersions] -> setBuildParam " esversions" esVersions
75
+ | [ " profile" ; esVersions] ->
76
+ setBuildParam " esversions" esVersions
76
77
| [ " profile" ; esVersions; testFilter] ->
77
78
setBuildParam " esversions" esVersions
78
- setBuildParam " testfilter" testFilter
79
-
79
+ setBuildParam " testfilter" testFilter
80
+
80
81
| [ " integrate" ; esVersions] -> setBuildParam " esversions" esVersions
81
82
| [ " integrate" ; esVersions; clusterFilter] ->
82
83
setBuildParam " esversions" esVersions
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ module Profiler =
48
48
member val Commit = commit with get, set
49
49
member val Functions = functions with get, set
50
50
51
- let private project = " Tests"
52
- let private profiledApp = sprintf " %s /%s /%s .exe" ( Paths.Output( " v4.6 " )) project project
51
+ let private project = PrivateProject ( Tests) .Name
52
+ let private profiledApp = sprintf " %s /net46 /%s .exe" ( Paths.Output( " Tests " )) project
53
53
let private snapShotOutput = Paths.Output( " ProfilingSnapshot.dtp" )
54
54
let private snapShotStatsOutput = Paths.Output( " ProfilingSnapshotStats.html" )
55
55
let private profileOutput = Paths.Output( " ProfilingReport.xml" )
@@ -63,7 +63,8 @@ module Profiler =
63
63
64
64
let Run () =
65
65
let date = DateTime.UtcNow.ToString( " yyyy-MM-ddTHH:mm:ss.fffz" )
66
- Tooling.execProcessWithTimeout profiledApp [ " Profile" ; " Class" ; getBuildParam " testfilter" ] ( TimeSpan.FromMinutes 30. ) |> ignore
66
+ trace profiledApp
67
+ Tooling.execProcessWithTimeout profiledApp [ " Profile" ; " Class" ; getBuildParam " testfilter" ] ( TimeSpan.FromMinutes 30. ) " ." |> ignore
67
68
trace " Profiling finished."
68
69
69
70
let performanceOutput = Paths.Output( " profiling/performance" ) |> directoryInfo
Original file line number Diff line number Diff line change 14
14
</ItemGroup >
15
15
<ItemGroup >
16
16
<Folder Include =" RestSpecification\XPack\Info" />
17
- <Folder Include =" RestSpecification\XPack\MachineLearning" />
18
17
</ItemGroup >
18
+ <Import Project =" ..\..\..\.paket\Paket.Restore.targets" />
19
19
<Import Project =" ..\..\outputpath.props" />
20
20
</Project >
Original file line number Diff line number Diff line change 18
18
<PackageReference Include =" System.Collections.Immutable" Version =" 1.3.1" />
19
19
<PackageReference Include =" Newtonsoft.Json" Version =" 10.0.1" />
20
20
</ItemGroup >
21
+ <Import Project =" ..\..\..\.paket\Paket.Restore.targets" />
21
22
<Import Project =" ..\..\outputpath.props" />
22
- </Project >
23
+ </Project >
Original file line number Diff line number Diff line change 16
16
<PackageReference Include =" System.Reflection.TypeExtensions" Version =" 4.3.0" />
17
17
<PackageReference Include =" Microsoft.CSharp" Version =" 4.3.0" />
18
18
</ItemGroup >
19
+ <Import Project =" ..\..\.paket\Paket.Restore.targets" />
19
20
<Import Project =" ..\outputpath.props" />
20
- </Project >
21
+ </Project >
Original file line number Diff line number Diff line change 18
18
<PackageReference Include =" System.Reflection.TypeExtensions" Version =" 4.3.0" />
19
19
<PackageReference Include =" System.Linq.Queryable" Version =" 4.0.1" />
20
20
</ItemGroup >
21
+ <ItemGroup >
22
+ <Folder Include =" Cluster\RemoteInfo" />
23
+ <Folder Include =" Cluster\RemoteInfo" />
24
+ <Folder Include =" Document\Single\SourceExists" />
25
+ <Folder Include =" Mapping\Types\Specialized\Attachment" />
26
+ <Folder Include =" QueryDsl\FullText\MatchPhrase" />
27
+ <Folder Include =" QueryDsl\FullText\MatchPhrasePrefix" />
28
+ <Folder Include =" Search\FieldCapabilities" />
29
+ <Folder Include =" XPack\Info\XPackInfo" />
30
+ <Folder Include =" XPack\Info\XPackInfo" />
31
+ <Folder Include =" XPack\Info\XPackUsage" />
32
+ </ItemGroup >
33
+ <!-- <Import Project="..\..\.paket\Paket.Restore.targets" />-->
34
+ <Import Project =" ..\..\.paket\Paket.Restore.targets" />
21
35
<Import Project =" ..\outputpath.props" />
22
36
</Project >
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ static Program()
59
59
// TODO: Renamed this from Main to TestMain because of a bug with Resharper and running unit tests
60
60
// in Visual Studio with .NET Core: https://youtrack.jetbrains.com/issue/RSRP-464233
61
61
// Once this is fixed, look at renaming back and removing additional packages. See https://github.com/elastic/elasticsearch-net/pull/2793
62
- public static void TestMain ( string [ ] args )
62
+ public static void Main ( string [ ] args )
63
63
{
64
64
if ( args . Length == 0 )
65
65
Console . WriteLine ( "Must specify at least one argument: TestAssemblyPath, Profile or Benchmark " ) ;
Original file line number Diff line number Diff line change 9
9
<VersionPrefix >6.0.0</VersionPrefix >
10
10
<VersionSuffix >alpha</VersionSuffix >
11
11
<DefineConstants Condition =" '$(TargetFramework)'=='netcoreapp1.1' OR '$(DotNetCoreOnly)'=='1'" >$(DefineConstants);DOTNETCORE</DefineConstants >
12
- <DebugType Condition =" '$(DotNetCoreOnly)'==''" >embedded</DebugType >
13
- <DebugType Condition =" '$(Configuration)'=='Debug'" >full</DebugType >
14
12
</PropertyGroup >
15
13
<ItemGroup >
16
14
<DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.3.0-beta1-build3642" />
25
23
<PackageReference Include =" BenchMarkDotNet" Version =" 0.10.0" />
26
24
<PackageReference Include =" DiffPlex" Version =" 1.4.1" />
27
25
<PackageReference Include =" System.Reactive" Version =" 3.1.1" />
28
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.0.0" />
29
26
<!-- TODO only for Desktop CLR? -->
30
27
<PackageReference Include =" System.Buffers" Version =" 4.3.0" />
31
28
<!-- TODO update -->
34
31
<PackageReference Include =" JetBrains.Profiler.Kernel.Windows.Api" Version =" 108.0.20170209.151431-eap01" />
35
32
<Reference Include =" ..\..\build\profiling\JetBrains.Profiler.Windows.SelfApi.dll" />
36
33
</ItemGroup >
37
- <ItemGroup Condition =" '$(TargetFramework)'!='net45'" >
38
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.2.0" />
39
- </ItemGroup >
40
34
<ItemGroup Condition =" '$(TargetFramework)'=='netcoreapp1.1'" >
41
35
<PackageReference Include =" System.Net.Http" Version =" 4.3.0" />
42
36
<PackageReference Include =" System.Diagnostics.FileVersionInfo" Version =" 4.3.0" />
45
39
<EmbeddedResource Include =" Document\Single\Index\Attachment_Test_Document.pdf" />
46
40
</ItemGroup >
47
41
<Import Project =" ..\outputpath.props" />
48
- </Project >
42
+ </Project >
You can’t perform that action at this time.
0 commit comments