diff --git a/Invoke-Tests.ps1 b/Invoke-Tests.ps1 index 9b5432a3e3..ff077219db 100644 --- a/Invoke-Tests.ps1 +++ b/Invoke-Tests.ps1 @@ -1,4 +1,4 @@ -#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' } +#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' } #Requires -RunAsAdministrator <# .SYNOPSIS @@ -50,7 +50,8 @@ else { if (-not (Test-Path "$TestPath/packages") -or -not $SkipPackaging) { $null = New-Item -Path "$TestPath/packages" -ItemType Directory -Force # Get and pack packages - $nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse | Where-Object Name -Like '*.nuspec' + $nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse -Include *.nuspec + Get-ChildItem -Path $PSScriptRoot/tests/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$TestPath/packages" foreach ($file in $nuspecs) { Write-Host "Packaging $file" diff --git a/tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg b/tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg new file mode 100644 index 0000000000..17a790d21e Binary files /dev/null and b/tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg differ diff --git a/tests/packages/nonnormalizedversions/nonnormalizedversions.01.0.0.0.nupkg b/tests/packages/nonnormalizedversions/nonnormalizedversions.01.0.0.0.nupkg new file mode 100644 index 0000000000..413f40031e Binary files /dev/null and b/tests/packages/nonnormalizedversions/nonnormalizedversions.01.0.0.0.nupkg differ