-
-
Notifications
You must be signed in to change notification settings - Fork 952
Test integration tests #1250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
WojciechNagorski
merged 94 commits into
sshnet:develop
from
WojciechNagorski:integration-tests-appveyor
Nov 30, 2023
Merged
Test integration tests #1250
Changes from 82 commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
7c6af7a
Test integration tests
WojciechNagorski 4f37634
Update appveyor.yml
WojciechNagorski a504e27
Update appveyor.yml
WojciechNagorski 2b20162
Update Dockerfile
WojciechNagorski 547e4a6
Update appveyor.yml
WojciechNagorski f1e652f
test?
WojciechNagorski f2fe3e1
Merge branch 'develop' into integration-tests-appveyor
WojciechNagorski 393a7a1
Test
WojciechNagorski e26f86b
Enable docker
WojciechNagorski 4cd89e3
Update appveyor.yml
WojciechNagorski 0b96523
Update appveyor.yml
WojciechNagorski e7611a5
Merge branch 'integration-tests-appveyor' of https://github.com/Wojci…
WojciechNagorski 91e2ce5
Fix & Show additional information
WojciechNagorski 83e9b20
Try to fix connection problems
WojciechNagorski 2a891a6
Fix build
WojciechNagorski ceeb17c
remove artifacts
WojciechNagorski 1d3b07e
Enable logging
WojciechNagorski 11aac88
Log Information only
WojciechNagorski 401600d
Update appveyor.yml
WojciechNagorski 8b9cae2
Update appveyor.yml
WojciechNagorski 179fa7f
Update appveyor.yml
WojciechNagorski c088277
Update appveyor.yml
WojciechNagorski fe010a4
Update appveyor.yml
WojciechNagorski 7a4e418
Update appveyor.yml
WojciechNagorski 89e84c1
Update appveyor.yml
WojciechNagorski 9246e91
Update appveyor.yml
Rob-Hague 05f4a28
Update appveyor.yml
Rob-Hague 2b30996
Update appveyor.yml
Rob-Hague aeb1492
Update appveyor.yml
Rob-Hague d768f19
Update appveyor.yml
Rob-Hague fabf8c7
Update appveyor.yml
Rob-Hague 1b6c73b
sleep after restarting
Rob-Hague 49c730c
Update RemoteSshd.cs
WojciechNagorski 5129976
Fix tests
WojciechNagorski 06a52e3
Merge branch 'integration-tests-appveyor' of https://github.com/Wojci…
WojciechNagorski a0d6360
Dispose ports
WojciechNagorski 914f419
Small improvements
WojciechNagorski 5426cf1
Fix build
WojciechNagorski 63dbf1c
Small fixes
WojciechNagorski 82cf3bb
Revert not related changes
WojciechNagorski cca8ba6
Test linux and windows
WojciechNagorski 63ef6ef
fix
WojciechNagorski b2b0b88
test_script
WojciechNagorski 6d4e59f
Use real commands
WojciechNagorski 093193c
Fixes
WojciechNagorski 624486c
fix?
WojciechNagorski df3fb94
Add Appveyor TestLogger
WojciechNagorski 24e76e4
Fix linux tests
WojciechNagorski ecc0fae
Fix tests
WojciechNagorski 309ae1b
Try to fix tests
WojciechNagorski 5bcc756
Revert
WojciechNagorski eee3db5
Give time before
WojciechNagorski 70ab38d
fix
WojciechNagorski b9764c2
revert
WojciechNagorski 9944991
Give some time to process all messages after connect
WojciechNagorski 30a3620
ForwardedPortDynamicTest_Stop_PortStarted_ChannelNotBound
Rob-Hague 19b0ac6
fix netsh
Rob-Hague e10fc14
trace
Rob-Hague cf26535
Update appveyor.yml
WojciechNagorski 4aebfd2
Update appveyor.yml
WojciechNagorski 9399fd9
etl2pcapng
Rob-Hague 46cbe42
Update appveyor.yml
Rob-Hague 850e87c
Update appveyor.yml
Rob-Hague 0a0a473
Update appveyor.yml
Rob-Hague 0eb40d6
Update appveyor.yml
Rob-Hague 48ce561
Update appveyor.yml
scott-xu ec33d6d
Merge pull request #1 from scott-xu/patch-1
WojciechNagorski 65e84f9
come on !!
Rob-Hague f850d9b
Update appveyor.yml
Rob-Hague 68cc3a8
Fixes tests for linux
WojciechNagorski 03df17d
Merge branch 'develop' into integration-tests-appveyor
WojciechNagorski 4336148
Reverts
WojciechNagorski 2210fa1
Fix build
WojciechNagorski 64bb26b
Update TestMethodForPlatformAttribute.cs
WojciechNagorski e732710
Update TestMethodForPlatformAttribute.cs
WojciechNagorski c7c0b66
Update appveyor.yml
WojciechNagorski 25e0aac
Issue #1253
WojciechNagorski 0c1d4af
Install .NET SDK
WojciechNagorski ca4536e
next try
WojciechNagorski e0f9dd0
fix?
WojciechNagorski d96c7f7
try
WojciechNagorski edce619
Finishing
WojciechNagorski b378cf1
Fixes
WojciechNagorski 980dbf5
apt-get install dotnet-sdk-7.0
WojciechNagorski 81f8d03
Finish?
WojciechNagorski f3ca592
Add environment APPVEYOR_BAKE_IMAGE
WojciechNagorski cf23073
Update test/Renci.SshNet.Tests/Classes/Connection/DirectConnectorTest…
WojciechNagorski 06a7444
Fix review
WojciechNagorski 52d9c68
Merge branch 'integration-tests-appveyor' of https://github.com/Wojci…
WojciechNagorski c2143d3
Fix
WojciechNagorski 769863f
Merge branch 'develop' into integration-tests-appveyor
WojciechNagorski e398e63
Update appveyor.yml
WojciechNagorski 0251c81
Update appveyor.yml
WojciechNagorski 502ef8a
Delete .runsettings
WojciechNagorski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,72 @@ | ||
os: Visual Studio 2022 | ||
image: | ||
- Ubuntu2204 | ||
- Visual Studio 2022 | ||
|
||
before_build: | ||
- nuget restore Renci.SshNet.sln | ||
services: | ||
- docker | ||
|
||
install: | ||
- cinst dotnet-sdk --version=7.0.403 --limit-output | ||
|
||
build: | ||
project: Renci.SshNet.sln | ||
verbosity: minimal | ||
|
||
test_script: | ||
- cmd: >- | ||
vstest.console /logger:Appveyor test\Renci.SshNet.Tests\bin\Debug\net462\Renci.SshNet.Tests.dll /TestCaseFilter:"TestCategory!=integration" --blame | ||
|
||
vstest.console /logger:Appveyor test\Renci.SshNet.Tests\bin\Debug\net7.0\Renci.SshNet.Tests.dll /TestCaseFilter:"TestCategory!=integration" --blame | ||
for: | ||
- | ||
matrix: | ||
only: | ||
- image: Ubuntu2204 | ||
|
||
install: | ||
- sh: curl -sSL https://dot.net/v1/dotnet-install.sh | sudo bash /dev/stdin --version 7.0.403 | ||
|
||
before_build: | ||
- sh: mkdir artifacts | ||
|
||
build_script: | ||
- echo build | ||
- dotnet build Renci.SshNet.sln -c Debug -f net7.0 | ||
|
||
test_script: | ||
- sh: echo "Run unit tests" | ||
# - sudo tcpdump -i docker0 -w artifacts/tcpdump.pcap -U & | ||
- sh: dotnet test -f net7.0 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=linux_unit_test_net_7_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/linux_unit_test_net_7_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj | ||
# - sh: dotnet test --filter ForwardedPortDynamicTest_Stop_PortStarted_ChannelNotBound -f net7.0 -c Debug --no-restore --no-build --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=linux_unit_test_net_7_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=artifacts/linux_unit_test_net_7_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj | ||
# - killall tcpdump | ||
- sh: echo "Run integration tests" | ||
- sh: dotnet test -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=linux_integration_test_net_7_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/linux_integration_test_net_7_coverage.xml test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj | ||
|
||
# on_failure: | ||
# - sh: appveyor PushArtifact artifacts/tcpdump.pcap | ||
|
||
- | ||
matrix: | ||
only: | ||
- image: Visual Studio 2022 | ||
|
||
install: | ||
- ps: choco install dotnet-7.0-sdk --version=7.0.403 | ||
|
||
before_build: | ||
- ps: mkdir artifacts | ||
# Run a separate PowerShell process because the script calls exit, so it will end the current PowerShell session. | ||
#- ps: powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) --channel 7.0" | ||
|
||
build_script: | ||
- echo build | ||
- dotnet build Renci.SshNet.sln -c Debug | ||
|
||
test_script: | ||
# - netsh trace start capture=yes tracefile=trace.etl | ||
- ps: echo "Run unit tests for .NET 7.0" | ||
- ps: dotnet test -f net7.0 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=windows_unit_test_net_7_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/windows_unit_test_net_7_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj | ||
# - ps: dotnet test --filter ForwardedPortDynamicTest_Stop_PortStarted_ChannelNotBound -f net7.0 -c Debug --no-restore --no-build --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=windows_unit_test_net_7_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=artifacts/windows_unit_test_net_7_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj | ||
# - netsh trace stop | ||
# - ps: Invoke-WebRequest https://github.com/microsoft/etl2pcapng/releases/download/v1.11.0/etl2pcapng.exe -OutFile etl2pcapng.exe | ||
# - ls | ||
# - ps: .\etl2pcapng.exe trace.etl artifacts/tcpdump.pcap | ||
- ps: echo "Run unit tests for .NET Framework 4.6.2" | ||
- ps: dotnet test -f net462 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=windows_unit_test_net_4_6_2_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/windows_unit_test_net_4_6_2_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj | ||
|
||
# on_failure: | ||
# - ps: Push-AppveyorArtifact artifacts/tcpdump.pcap | ||
|
||
artifacts: | ||
- path: artifacts | ||
name: artifacts |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to delete all the commented-out stuff