Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration test for globbing broken when trying to fix #1472 #1475

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion integrationtests/Paket.IntegrationTests/PackSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,20 @@ let ``#1473 works in same folder``() =

prepare scenario
directPaket "pack templatefile paket.template output o" scenario |> ignore
directPaket "update" scenario|> ignore
directPaket "update" scenario|> ignore

[<Test>]
let ``#1472 globs correctly``() =
let scenario = "i001472-globbing"

let outPath = Path.Combine(scenarioTempPath "i001472-globbing","out")
let templatePath = Path.Combine(scenarioTempPath "i001472-globbing","src", "A.Source", "paket.template")
paket ("pack version 1.0.0 output \"" + outPath + "\"") "i001472-globbing" |> ignore

let package = Path.Combine(outPath, "A.Source.1.0.0.nupkg")

ZipFile.ExtractToDirectory(package, outPath)

let expectedFile = Path.Combine(outPath, "content", "A", "Folder", "source.cs")

File.Exists expectedFile |> shouldEqual true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source https://www.nuget.org/api/v2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type file
id A.Source
owners Team
authors Team
projectUrl
https://github.com/
iconUrl
http://github.io/
licenseUrl
https://github.com/
requireLicenseAcceptance
false
copyright
Copyright 2015
tags
tag
summary
summary
description
Project has no description
files
../A/**/*.cs ==> content/A
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// just an empty file i expect to be packaged