Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit 82929ba

Browse files
committed
[dnvm.ps1] react to removal of k and rename of kpm to dnu
1 parent 3adbbd1 commit 82929ba

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

test/ps1/_Common.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Set-Variable -Option Constant "CrossGenCommand" "k-crossgen"
99
Set-Variable -Option Constant "HomeEnvVar" "DNX_HOME"
1010
Set-Variable -Option Constant "UserHomeEnvVar" "DNX_USER_HOME"
1111
Set-Variable -Option Constant "FeedEnvVar" "DNX_FEED"
12-
Set-Variable -Option Constant "PackageManagerName" "kpm.cmd"
13-
Set-Variable -Option Constant "RuntimeExecutableName" "k.cmd"
12+
Set-Variable -Option Constant "PackageManagerName" "dnu.cmd"
1413
Set-Variable -Option Constant "RuntimeHostName" "dnx.exe"
1514

1615
function Write-Banner {

test/ps1/_Execute-Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ if(!$TestAppsDir) { $TestAppsDir = Convert-Path (Join-Path $PSScriptRoot "../app
3535
# Configure the Runtimes we're going to use in testing. The actual runtime doesn't matter since we're only testing
3636
# that dnvm can find it, download it and unpack it successfully. We do run an app in the runtime to do that sanity
3737
# test, but all we care about in these tests is that the app executes.
38-
$env:DNX_FEED = "https://www.myget.org/F/aspnetvnext/api/v2"
39-
$TestRuntimeVersion = "1.0.0-beta4-11244"
38+
$env:DNX_FEED = "https://www.myget.org/F/aspnetrelease/api/v2"
39+
$TestRuntimeVersion = "1.0.0-beta4-11390"
4040
$specificNupkgUrl = "$($env:DNX_FEED)/package/dnx-coreclr-win-x64/$TestRuntimeVersion"
41-
$specificNupkgHash = "949DAF5DD88396594214FAF43ED3675F637340338CA54715A966A7960257A0CE"
41+
$specificNupkgHash = "FABCEDCAEAB8A000F9A1972D1DF6E8CF960D041E0B94E8473BFCCF618A9B5644"
4242
$specificNupkgName = "dnx-coreclr-win-x64.$TestRuntimeVersion.nupkg"
4343
$specificNuPkgFxName = "Asp.Net,Version=v5.0"
4444

test/ps1/tests/Install.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ function DefineInstallTests($clr, $arch) {
3434
It "can run the TestApp sample" {
3535
pushd "$TestAppsDir\TestApp"
3636
try {
37-
"$runtimeRoot\bin\$RuntimeExecutableName" | Should Exist
37+
"$runtimeRoot\bin\$RuntimeHostName" | Should Exist
3838

39-
$output = & "$runtimeRoot\bin\$RuntimeExecutableName" run
39+
$output = & "$runtimeRoot\bin\$RuntimeHostName" . run
4040
$LASTEXITCODE | Should Be 0
4141
$fullOutput = [String]::Join("`r`n", $output)
4242
$output | ForEach-Object { Write-Verbose $_ }

test/ps1/tests/Use.Tests.ps1

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ Describe "use" -Tag "use" {
2929
__dnvmtest_run use $TestRuntimeVersion | Out-Null
3030
$runtimeName = GetRuntimeName -clr CLR -arch x86
3131

32-
It "puts $RuntimeExecutableName on the PATH" {
33-
$cmd = Get-Command $RuntimeExecutableName -ErrorAction SilentlyContinue
34-
$cmd | Should Not BeNullOrEmpty
35-
$cmd.Definition | Should Be (Convert-Path "$UserPath\runtimes\$runtimeName\bin\$RuntimeExecutableName")
36-
}
37-
3832
It "puts $PackageManagerName on the PATH" {
3933
$cmd = Get-Command $PackageManagerName -ErrorAction SilentlyContinue
4034
$cmd | Should Not BeNullOrEmpty
@@ -53,13 +47,6 @@ Describe "use" -Tag "use" {
5347
Context "When use-ing an alias" {
5448
__dnvmtest_run use $testAlias | Out-Null
5549

56-
# 'k.cmd' still exists, for now.
57-
It "puts $RuntimeExecutableName on the PATH" {
58-
$cmd = Get-Command $RuntimeExecutableName -ErrorAction SilentlyContinue
59-
$cmd | Should Not BeNullOrEmpty
60-
$cmd.Definition | Should Be (Convert-Path "$UserPath\runtimes\$runtimeName\bin\$RuntimeExecutableName")
61-
}
62-
6350
It "puts $PackageManagerName on the PATH" {
6451
$cmd = Get-Command $PackageManagerName -ErrorAction SilentlyContinue
6552
$cmd | Should Not BeNullOrEmpty
@@ -82,10 +69,6 @@ Describe "use" -Tag "use" {
8269
GetRuntimesOnPath | Should BeNullOrEmpty
8370
}
8471

85-
It "removes $RuntimeExecutableName from the PATH" {
86-
$cmd = (Get-Command $RuntimeExecutableName -ErrorAction SilentlyContinue)
87-
}
88-
8972
It "removes $PackageManagerName from the PATH" {
9073
(Get-Command $PackageManagerName -ErrorAction SilentlyContinue) | Should BeNullOrEmpty
9174
}

0 commit comments

Comments
 (0)