Skip to content

Commit 821c4ce

Browse files
committed
Add integration test
1 parent 6a8ab32 commit 821c4ce

7 files changed

Lines changed: 485 additions & 0 deletions

File tree

‎integrationtests/Paket.IntegrationTests/RestoreSpecs.fs‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ let ``#2496 Paket fails on projects that target multiple frameworks``() =
1818
directDotnet true (sprintf "restore %s.csproj" project) wd
1919
|> ignore
2020

21+
[<Test>]
22+
let ``#3527 BaseIntermediateOutputPath``() =
23+
let project = "project"
24+
let scenario = "i003527"
25+
prepareSdk scenario
26+
27+
let wd = (scenarioTempPath scenario) @@ project
28+
directDotnet true (sprintf "restore %s.fsproj" project) wd
29+
|> ignore
30+
31+
let defaultObjDir = DirectoryInfo (Path.Combine (scenarioTempPath scenario, project, "obj"))
32+
let customObjDir = DirectoryInfo (Path.Combine (scenarioTempPath scenario, project, "obj", "custom"))
33+
34+
defaultObjDir.GetFiles() |> shouldBeEmpty
35+
customObjDir.GetFiles().Length |> shouldBeGreaterThan 0
36+
2137
[<Test>]
2238
#if FAKE_NETSTANDARD_API
2339
[<Ignore("use an api of FakeLib (net40) unsupported on .net core")>]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/obj/**/*</DefaultItemExcludes>
5+
<DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/bin/**/*</DefaultItemExcludes>
6+
7+
<PaketDisableGlobalRestore>true</PaketDisableGlobalRestore>
8+
</PropertyGroup>
9+
10+
<PropertyGroup>
11+
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/custom/</BaseIntermediateOutputPath>
12+
<BaseOutputPath>$(MSBuildProjectDirectory)/bin/custom/</BaseOutputPath>
13+
</PropertyGroup>
14+
15+
</Project>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source https://api.nuget.org/v3/index.json
2+
3+
nuget FSharp.Core

‎integrationtests/scenarios/i003527/before/paket.lock‎

Lines changed: 431 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Learn more about F# at http://fsharp.org
2+
3+
open System
4+
5+
[<EntryPoint>]
6+
let main argv =
7+
printfn "Hello World from F#!"
8+
0 // return an integer exit code
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FSharp.Core
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp2.1</TargetFramework>
6+
</PropertyGroup>
7+
<ItemGroup>
8+
<Compile Include="Program.fs" />
9+
</ItemGroup>
10+
<Import Project="..\.paket\Paket.Restore.targets" />
11+
</Project>

0 commit comments

Comments
 (0)