mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-29 08:47:10 +00:00
- Fixes a bug introduced with 478f52c421 that broke manifest tests on other buckets
- Allows testing "bucket" subdirectory for buckets
29 lines
832 B
PowerShell
29 lines
832 B
PowerShell
if([String]::IsNullOrEmpty($MyInvocation.PSScriptRoot)) {
|
|
Write-Error 'This script should not be called directly! It has to be imported from a buckets test file!'
|
|
exit 1
|
|
}
|
|
|
|
. "$psscriptroot\Scoop-TestLib.ps1"
|
|
. "$psscriptroot\..\lib\core.ps1"
|
|
. "$psscriptroot\..\lib\manifest.ps1"
|
|
. "$psscriptroot\..\lib\unix.ps1"
|
|
|
|
$repo_dir = (Get-Item $MyInvocation.PSScriptRoot).FullName
|
|
|
|
$repo_files = @(Get-ChildItem $repo_dir -file -recurse)
|
|
|
|
$project_file_exclusions = @(
|
|
$([regex]::Escape($repo_dir)+'(\\|/).git(\\|/).*$'),
|
|
'.sublime-workspace$',
|
|
'.DS_Store$',
|
|
'supporting(\\|/)validator(\\|/)packages(\\|/)*'
|
|
)
|
|
|
|
$bucketdir = $repo_dir
|
|
if(Test-Path("$repo_dir\bucket")) {
|
|
$bucketdir = "$repo_dir\bucket"
|
|
}
|
|
|
|
. "$psscriptroot\Import-File-Tests.ps1"
|
|
. "$psscriptroot\Scoop-Manifest.Tests.ps1" -bucketdir $bucketdir
|