diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-07-23 22:28:10 -0700 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-07-29 08:55:06 -0700 |
commit | 13c3dc1de08e4be6c0b62f842e87f029ba1ab2ec (patch) | |
tree | f75e83adabaac8877d1975052139cb252b8ea435 /.travis.yml | |
parent | dfcba59b6a77d9a730ed8d6b6728d8812ece424b (diff) | |
download | ssh2-rs-13c3dc1de08e4be6c0b62f842e87f029ba1ab2ec.zip |
Add script for running integration tests
This makes it possible to run the integration tests without
requiring that the user change their local ssh configuration.
This is desirable because some sites have strict controls over
the local ssh configuration files.
This commit adds a script that spawns a local copy of the ssh
daemon running on an alternate port with a specific configuration
that is known to successfully pass the test suite.
This has only been tested on my local macos machine so far.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml index dc45ca8..4fe2af6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,20 +24,9 @@ matrix: on: branch: master -before_script: - - ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q - - eval `ssh-agent -s` - - ssh-add ~/.ssh/id_rsa - - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys - - echo "Host localhost" >> ~/.ssh/config - - echo " StrictHostKeyChecking no" >> ~/.ssh/config - - chmod 600 ~/.ssh/authorized_keys - - ssh -v localhost echo hello - script: - cargo build - - cargo test --features vendored-openssl - - cargo test + - tests/run_integration_tests.sh - rustdoc --test README.md -L target - cargo run --manifest-path systest/Cargo.toml |