mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
remove unused scoop tests (#6118)
This PR removes a few scoop-related files that seem to have been there primarily to help us discover how Scoop worked when we first started using it. They have not been touched in a long time and as far as I can tell have not been run in a long time either. I'm a firm believer in the idea that dead code belongs to the git history, and has no place in the current worktree. CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
6e48abc793
commit
9a02ef6ef4
@ -1,34 +0,0 @@
|
||||
{
|
||||
"homepage": "https://gitforwindows.org/",
|
||||
"license": "GPL-2.0",
|
||||
"version": "2.21.0.windows.1",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/PortableGit-2.21.0-64-bit.7z.exe#/dl.7z",
|
||||
"hash": "208926e53fa4bd11a1379fddcaf26e49ff08dc4c589dd2570a1307c31b3b9939"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/PortableGit-2.21.0-32-bit.7z.exe#/dl.7z",
|
||||
"hash": "83df8f4349882ff858d77f557531d85fb9f57b097b1af22486fa4bf5351ba3cc"
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"cmd\\git.exe",
|
||||
"cmd\\gitk.exe",
|
||||
"cmd\\git-gui.exe",
|
||||
"git-bash.exe",
|
||||
"usr\\bin\\ssh.exe",
|
||||
"usr\\bin\\sshd.exe",
|
||||
"usr\\bin\\scp.exe",
|
||||
"usr\\bin\\sftp.exe",
|
||||
"usr\\bin\\ssh-add.exe",
|
||||
"usr\\bin\\ssh-agent.exe",
|
||||
"usr\\bin\\ssh-keygen.exe",
|
||||
"usr\\bin\\ssh-keyscan.exe",
|
||||
"usr\\bin\\tig.exe"
|
||||
],
|
||||
"post_install": [
|
||||
"git config --global credential.helper manager",
|
||||
"git config --system core.longpaths true"
|
||||
]
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"homepage": "http://www.groovy-lang.org/",
|
||||
"version": "2.5.3",
|
||||
"license": "Apache-2.0",
|
||||
"url": "https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.5.3.zip",
|
||||
"hash": "47942bdb31a9f7ebf0db5b324bc99a289fd6ff87723e21e06f4701fa7c8c85c7",
|
||||
"extract_dir": "groovy-2.5.3",
|
||||
"bin": [
|
||||
"bin\\grape.bat",
|
||||
"bin\\groovy.bat",
|
||||
"bin\\groovyc.bat",
|
||||
"bin\\groovyConsole.bat",
|
||||
"bin\\groovydoc.bat",
|
||||
"bin\\groovysh.bat",
|
||||
"bin\\java2groovy.bat",
|
||||
"bin\\startGroovy.bat"
|
||||
]
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"version": "0.48",
|
||||
"description": "Inno Setup Unpacker.",
|
||||
"homepage": "http://innounp.sourceforge.net",
|
||||
"license": "GPL-3.0-only",
|
||||
"url": "https://raw.githubusercontent.com/scoopinstaller/binary-mirror/master/innounp/innounp048.rar",
|
||||
"hash": "sha1:638a8ff3b87c40d12b43ca964e6777baca2176c8",
|
||||
"bin": "innounp.exe",
|
||||
"checkver": "Version\\s+([\\d\\.]+)\\s*<br>",
|
||||
"autoupdate": {
|
||||
"url": "https://raw.githubusercontent.com/scoopinstaller/binary-mirror/master/innounp/innounp$cleanVersion.rar",
|
||||
"hash": {
|
||||
"url": "$baseurl/innounp$cleanVersion.sha1"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
{
|
||||
"version": "1.4",
|
||||
"license": "MIT",
|
||||
"architecture": {
|
||||
"32bit": {
|
||||
"url": "https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win32.exe#/jq.exe",
|
||||
"hash": "e08ca23dc637e8c0fe1577f592a9367e036f5b3f4c10b189c53943b0c8868866"
|
||||
},
|
||||
"64bit": {
|
||||
"url": "https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win64.exe#/jq.exe",
|
||||
"hash": "1c96fd65fd60763b92a28c7ee1290eeb974bc69b71b963d0e45cbfca1625565e"
|
||||
}
|
||||
},
|
||||
"homepage": "https://stedolan.github.io/jq/",
|
||||
"bin": [
|
||||
"jq.exe",
|
||||
[
|
||||
"jq.exe",
|
||||
"jq14"
|
||||
]
|
||||
]
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
{
|
||||
"version": "1.5",
|
||||
"license": "MIT",
|
||||
"architecture": {
|
||||
"32bit": {
|
||||
"url": "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win32.exe#/jq.exe",
|
||||
"hash": "1860c77bc2816b74f91705b84c7fa0dad3a062b355f021aa8c8e427e388e23fc"
|
||||
},
|
||||
"64bit": {
|
||||
"url": "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe#/jq.exe",
|
||||
"hash": "ebecd840ba47efbf66822868178cc721a151060937f7ac406e3d31bd015bde94"
|
||||
}
|
||||
},
|
||||
"homepage": "https://stedolan.github.io/jq/",
|
||||
"bin": [
|
||||
"jq.exe",
|
||||
[
|
||||
"jq.exe",
|
||||
"jq15"
|
||||
]
|
||||
]
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
{
|
||||
"description": "Pester is a test and mock framework for PowerShell.",
|
||||
"version": "4.4.2",
|
||||
"license": "Apache-2.0",
|
||||
"url": "https://github.com/pester/Pester/archive/4.4.2.tar.gz",
|
||||
"homepage": "https://github.com/pester/Pester",
|
||||
"hash": "0166c4a2e736cb7a0e3672276b87805ec84a93ae9f74c04476977f0bce2e96c1",
|
||||
"extract_dir": "pester-4.4.2",
|
||||
"bin": "bin\\pester.bat",
|
||||
"post_install": [
|
||||
"$import = \"try { `$null = gcm pester -ea stop; import-module `\"$dir\\pester.psm1`\" } catch { }\"",
|
||||
"",
|
||||
"if($profile) {",
|
||||
" 'adding pester to powershell profile...'",
|
||||
" if(!(test-path $profile)) {",
|
||||
" 'powershell profile doesn''t exist. creating...'",
|
||||
" $profile_dir = split-path $profile",
|
||||
" if(!(test-path $profile_dir)) { mkdir $profile_dir > $null }",
|
||||
" '' > $profile",
|
||||
" }",
|
||||
"",
|
||||
" $text = get-content $profile",
|
||||
" if (($text | sls 'pester') -eq $null) {",
|
||||
" $new_profile = @($text) + $import",
|
||||
" $new_profile > $profile",
|
||||
" success 'pester added to powershell profile.'",
|
||||
" }",
|
||||
"} else { warn 'no powershell profile found. the pester module will not be imported each session.' }",
|
||||
"",
|
||||
"'importing pester for current session...'",
|
||||
"iex \"$import\""
|
||||
]
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
{
|
||||
"homepage": "https://www.python.org/",
|
||||
"license": "https://docs.python.org/3/license.html",
|
||||
"version": "2018.11.26",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://www.python.org/ftp/python/3.6.7/python-3.6.7-amd64.exe#/py3.exe",
|
||||
"hash": "e0134e8badd25fb81323d84806fcb43cfc83dd9e6ebc3144b03a48b265e6a698"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://www.python.org/ftp/python/3.6.7/python-3.6.7.exe#/py3.exe",
|
||||
"hash": "9da357eea42df7d64f871340519c3d468cb22d255a6a43650e4837b7f7bd3b60"
|
||||
}
|
||||
},
|
||||
"depends": "python-3.6.7",
|
||||
"installer": {
|
||||
"script": "pip install pipenv==2018.11.26 --no-warn-script-location"
|
||||
},
|
||||
"uninstaller": {
|
||||
"script": "try { pip uninstall pipenv -y} catch {}"
|
||||
},
|
||||
"bin": [
|
||||
[
|
||||
"../../python-3.6.7/current/Scripts/pipenv.exe",
|
||||
"pipenv"
|
||||
],
|
||||
[
|
||||
"../../python-3.6.7/current/Scripts/virtualenv.exe",
|
||||
"virtualenv"
|
||||
],
|
||||
[
|
||||
"../../python-3.6.7/current/Scripts/virtualenv-clone.exe",
|
||||
"virtualenv-clone"
|
||||
]
|
||||
]
|
||||
}
|
@ -1,152 +0,0 @@
|
||||
. "$PSScriptRoot\..\libexec\test-utils.ps1"
|
||||
|
||||
function clean {
|
||||
Remove-Item $env:DADEW -Recurse -Force -ErrorAction Ignore
|
||||
$env:DADEW_USE_COLORS = $null
|
||||
da_clear_random_dadew_home
|
||||
}
|
||||
|
||||
function dadew() {
|
||||
$env:DADEW_USE_COLORS = "false"
|
||||
. $PSScriptRoot/../bin/dadew.ps1 @args
|
||||
}
|
||||
|
||||
Describe "DADEW - DA DevEnv Windows" {
|
||||
|
||||
BeforeEach {
|
||||
da_random_dadew_home
|
||||
. "$PSScriptRoot\..\libexec\dadew.ps1"
|
||||
da_reset_path
|
||||
}
|
||||
|
||||
AfterEach {
|
||||
clean
|
||||
}
|
||||
|
||||
It "can be initialized in custom directory" {
|
||||
$env:SCOOP | Should -Match ([regex]::Escape($env:DADEW))
|
||||
}
|
||||
|
||||
It "provides Scoop on install" {
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
dadew "install"
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
dadew "enable"
|
||||
da_is_installed "scoop" | Should -Be True
|
||||
}
|
||||
|
||||
It "provides tools listed in .dadew file - jq" {
|
||||
da_is_installed "jq" | Should -Be False
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\jq"
|
||||
da_is_installed "jq" | Should -Be True
|
||||
(jq --version) | Out-String | Should -Match ([regex]::Escape("jq-1.5"))
|
||||
}
|
||||
|
||||
It "syncs provides tools listed in .dadew file ensuring not-listed are uninstalled" {
|
||||
da_is_installed "jq" | Should -Be False
|
||||
da_is_installed "node" | Should -Be False
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\jq"
|
||||
dadew "sync" "$PSScriptRoot\envs\nodejs"
|
||||
|
||||
da_is_installed "jq" | Should -Be False
|
||||
da_is_installed "node" | Should -Be True
|
||||
|
||||
dadew "sync" "$PSScriptRoot\envs\jq"
|
||||
|
||||
da_is_installed "jq" | Should -Be True
|
||||
da_is_installed "node" | Should -Be False
|
||||
}
|
||||
|
||||
It "can be enabled & disabled" {
|
||||
da_is_installed "jq" | Should -Be False
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\jq"
|
||||
da_is_installed "jq" | Should -Be True
|
||||
|
||||
dadew "disable"
|
||||
|
||||
da_is_installed "jq" | Should -Be False
|
||||
|
||||
dadew "enable"
|
||||
|
||||
da_is_installed "jq" | Should -Be True
|
||||
}
|
||||
|
||||
It "provides shims for same tools with different versions" {
|
||||
da_is_installed "jq" | Should -Be False
|
||||
da_is_installed "scoop" | Should -Be False
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
|
||||
dadew "sync" "$PSScriptRoot\envs\jq15"
|
||||
|
||||
da_is_installed "jq" | Should -Be True
|
||||
da_is_installed "jq14" | Should -Be False
|
||||
da_is_installed "jq15" | Should -Be True
|
||||
(jq --version) | Out-String | Should -Match ([regex]::Escape("jq-1.5"))
|
||||
(jq15 --version) | Out-String | Should -Match ([regex]::Escape("jq-1.5"))
|
||||
|
||||
dadew "sync" "$PSScriptRoot\envs\jq14"
|
||||
da_is_installed "jq" | Should -Be True
|
||||
da_is_installed "jq14" | Should -Be True
|
||||
da_is_installed "jq15" | Should -Be False
|
||||
(jq --version) | Out-String | Should -Match ([regex]::Escape("jq-1.4"))
|
||||
(jq14 --version) | Out-String | Should -Match ([regex]::Escape("jq-1.4"))
|
||||
|
||||
dadew "sync" "$PSScriptRoot\envs\jq15"
|
||||
da_is_installed "jq" | Should -Be True
|
||||
da_is_installed "jq14" | Should -Be False
|
||||
da_is_installed "jq15" | Should -Be True
|
||||
(jq --version) | Out-String | Should -Match ([regex]::Escape("jq-1.5"))
|
||||
(jq15 --version) | Out-String | Should -Match ([regex]::Escape("jq-1.5"))
|
||||
}
|
||||
|
||||
It "is versioned" {
|
||||
$version = Get-Content "$PSScriptRoot/../VERSION" | Select -Index 0
|
||||
$version | Should -Match "^\d*\.\d*\.\d*$"
|
||||
}
|
||||
|
||||
It "provides version of itself" {
|
||||
dadew "version" | Should -Be (Get-Content "$PSScriptRoot/../VERSION" | Select -Index 0)
|
||||
}
|
||||
|
||||
It "provides version of required dadew" {
|
||||
dadew "required-version" "$PSScriptRoot\envs\version" | Should -Be "99.0.91"
|
||||
}
|
||||
|
||||
It "fails on sync when required version is higher than version" {
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
$out = dadew "sync" "$PSScriptRoot\envs\version" | Out-String
|
||||
$out | Should -Match ([regex]::Escape("DADEW requires update. Current version: "))
|
||||
$out | Should -Match ([regex]::Escape("Required version: 99.0.91"))
|
||||
}
|
||||
|
||||
It "fails on sync when configuration file does not exist" {
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
$out = dadew "sync" "$PSScriptRoot\envs\non-existent" | Out-String
|
||||
$out | Should -Match ([regex]::Escape("No .dadew file found at "))
|
||||
$out | Should -Match ([regex]::Escape("envs\non-existent\.dadew"))
|
||||
}
|
||||
|
||||
It "provides dadew home path" {
|
||||
dadew "where" | Should -Be $env:DADEW
|
||||
}
|
||||
|
||||
It "provides app binary path" {
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "which" scoop | Should -Be "$env:DADEW\scoop\apps\scoop\current\bin\scoop.ps1"
|
||||
}
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"tools": [
|
||||
"bazel"
|
||||
]
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"tools": [
|
||||
"java-openjdk-8u201",
|
||||
"groovy-2.5.3"
|
||||
]
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"tools": [
|
||||
"jq-1.5"
|
||||
]
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"tools": [
|
||||
"jq-1.4"
|
||||
]
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"tools": [
|
||||
"jq-1.5"
|
||||
]
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"tools": [
|
||||
"nodejs-10.12.0"
|
||||
]
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"version": "99.0.91",
|
||||
"tools": [
|
||||
]
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
. "$PSScriptRoot\..\libexec\test-utils.ps1"
|
||||
|
||||
function clean {
|
||||
Remove-Item $env:DADEW -Recurse -Force -ErrorAction Ignore
|
||||
$env:DADEW_USE_COLORS = $null
|
||||
da_clear_random_dadew_home
|
||||
}
|
||||
|
||||
function dadew() {
|
||||
$env:DADEW_USE_COLORS = "false"
|
||||
. $PSScriptRoot/../bin/dadew.ps1 @args
|
||||
}
|
||||
|
||||
Describe "DADEW - DA DevEnv Windows" {
|
||||
|
||||
BeforeEach {
|
||||
da_random_dadew_home
|
||||
. "$PSScriptRoot\..\libexec\dadew.ps1"
|
||||
da_reset_path
|
||||
}
|
||||
|
||||
AfterEach {
|
||||
clean
|
||||
}
|
||||
|
||||
It "java is installed with unlimited cryptography enabled" {
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\java"
|
||||
|
||||
da_is_installed "java" | Should -Be True
|
||||
da_is_installed "jps" | Should -Be True
|
||||
da_is_installed "groovy" | Should -Be True
|
||||
|
||||
(groovy -e 'println(javax.crypto.Cipher.getMaxAllowedKeyLength(\"AES\"))') | Out-String | Should -Match ([regex]::Escape("2147483647"))
|
||||
}
|
||||
|
||||
It "bazel is installed and responds with version" {
|
||||
dadew "install"
|
||||
dadew "enable"
|
||||
dadew "sync" "$PSScriptRoot\envs\bazel"
|
||||
|
||||
da_is_installed "bazel" | Should -Be True
|
||||
|
||||
(bazel version) | Out-String | Should -Match ([regex]::Escape("Build label: "))
|
||||
}
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
. $PSScriptRoot/../libexec/core.ps1
|
||||
|
||||
Describe "da_compare_version" {
|
||||
|
||||
It "compares semver versions correctly - 0.0.0 = 0.0.0" {
|
||||
da_compare_version "0.0.0" "0.0.0" | Should -Be 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 0.0.0 < 0.0.2" {
|
||||
da_compare_version "0.0.0" "0.0.2" | Should -BeLessThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 0.0.2 > 0.0.0" {
|
||||
da_compare_version "0.0.2" "0.0.0" | Should -BeGreaterThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 0.1.0 = 0.1.0" {
|
||||
da_compare_version "0.1.0" "0.1.0" | Should -Be 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 0.1.0 < 0.1.1" {
|
||||
da_compare_version "0.1.0" "0.1.1" | Should -BeLessThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 1.1.2 > 1.1.0" {
|
||||
da_compare_version "1.1.2" "1.1.0" | Should -BeGreaterThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 10.1.2 > 9.1.2" {
|
||||
da_compare_version "10.1.2" "9.1.2" | Should -BeGreaterThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 10.1.2 > 09.1.2" {
|
||||
da_compare_version "10.1.2" "09.1.2" | Should -BeGreaterThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 010.1.2 > 09.1.2" {
|
||||
da_compare_version "010.1.2" "09.1.2" | Should -BeGreaterThan 0
|
||||
}
|
||||
|
||||
It "compares semver versions correctly - 5.0.0 > 4.9.999" {
|
||||
da_compare_version "5.0.0" "4.9.999" | Should -BeGreaterThan 0
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Describe "da_use_colors" {
|
||||
|
||||
It "should use color mode by default" {
|
||||
$env:DADEW_USE_COLORS = $null
|
||||
da_use_colors | Should -Be $true
|
||||
}
|
||||
|
||||
It "should handle invalid values" {
|
||||
$env:DADEW_USE_COLORS = "aaa"
|
||||
da_use_colors | Should -Be $true
|
||||
}
|
||||
|
||||
It "should handle opt-out" {
|
||||
$env:DADEW_USE_COLORS = "false"
|
||||
da_use_colors | Should -Be $false
|
||||
}
|
||||
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.208 -MaximumVersion 2.8.5.208 -Force
|
||||
Install-Module -Name Pester -Force -SkipPublisherCheck -MinimumVersion 4.4.2 -MaximumVersion 4.4.2
|
||||
Get-InstalledModule -Name Pester
|
Loading…
Reference in New Issue
Block a user