WIP: 26-integration-tests #35

Draft
Mr_Steppy wants to merge 16 commits from 26-integration-tests into master
Showing only changes of commit b381e6fa7f - Show all commits

View File

@ -22,6 +22,12 @@ pub struct TestEnvironment {
// TODO ssh servers and local server
}
#[derive(Debug)]
pub struct SshServer {
pub name: String,
pub home_dir: FsEntry,
}
#[derive(Debug)]
pub struct FsEntry {
pub name: OsString,
@ -30,14 +36,17 @@ pub struct FsEntry {
#[derive(Debug)]
pub enum FsEntryKind {
Directory {
entries: Vec<FsEntry>,
},
Directory(Dir),
File {
contents: String,
}
}
#[derive(Debug)]
pub struct Dir {
pub contents: Vec<FsEntry>,
}
impl Environment for TestEnvironment {
fn args_os(&self) -> Vec<OsString> {
self.args_os.clone()