From e21bbea974dd970bc84eb9c4d078ed25e9c179ad Mon Sep 17 00:00:00 2001 From: lepapareil Date: Sat, 20 Feb 2021 19:53:11 +0100 Subject: [PATCH] add integration test in win contrib docs --- contrib/windows/cmd_build.md | 12 ++++++++++-- contrib/windows/powershell_build.md | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/contrib/windows/cmd_build.md b/contrib/windows/cmd_build.md index f3e68ab2d..67b404dd8 100644 --- a/contrib/windows/cmd_build.md +++ b/contrib/windows/cmd_build.md @@ -76,6 +76,13 @@ cd c:\hurl\integration start /B server.py ``` +launch the ssl server + +```cmd +cd c:\hurl\integration +start /B ssl/server.py +``` + launch hurl unit tests ```cmd @@ -85,8 +92,9 @@ cargo test launch hurl integration tests -``` -coming soon ... ;) +```cmd +cd c:\hurl\integration +./integration.py ``` ## Generate version.txt file diff --git a/contrib/windows/powershell_build.md b/contrib/windows/powershell_build.md index 8272d804b..0a73a30b0 100644 --- a/contrib/windows/powershell_build.md +++ b/contrib/windows/powershell_build.md @@ -58,6 +58,10 @@ New-Item -ItemType "Directory" -Path "c:\hurl\target" -Name "win-package" Get-ChildItem -Path "c:\hurl\target\release" -Recurse -Include *.dll -File | Copy-Item -Destination "c:\hurl\target\win-package" Get-ChildItem -Path "c:\hurl\target\release" -Recurse -Include hurl*.exe -File | Copy-Item -Destination "c:\hurl\target\win-package" ((c:\hurl\target\win-package\hurl.exe --version) -Split " ")[1] > c:\hurl\target\win-package\version.txt +$oldpath = Get-ItemProperty -Path HKCU:\Environment -Name Path +$newpath = $oldpath.Path += ";c:\hurl\target\win-package" +Set-ItemProperty -Path HKCU:\Environment -Name Path -Value $newpath +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ``` ## Test your app