mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-25 14:56:17 +00:00
tests: Add importable tests for Buckets
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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(\\|/)*'
|
||||
)
|
||||
|
||||
. "$psscriptroot\Import-File-Tests.ps1"
|
||||
. "$psscriptroot\Scoop-Manifest.Tests.ps1"
|
||||
Reference in New Issue
Block a user