mirror of
https://gitlab.redox-os.org/CoffeeCode/redox-ssh.git
synced 2025-12-28 15:22:18 +01:00
CI&Docs: Also build&test Linux, update docs
This commit is contained in:
parent
b7f388ce02
commit
840d99089c
4 changed files with 38 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
image: "redoxos/redoxer"
|
image: "docker.io/redoxos/redoxer"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
@ -17,3 +17,17 @@ test:redox:
|
||||||
dependencies:
|
dependencies:
|
||||||
- build:redox
|
- build:redox
|
||||||
script: redoxer test --verbose
|
script: redoxer test --verbose
|
||||||
|
|
||||||
|
build:linux:
|
||||||
|
stage: build
|
||||||
|
image: docker.io/library/rust:alpine
|
||||||
|
script:
|
||||||
|
- apk add musl-dev
|
||||||
|
- cargo build --verbose
|
||||||
|
|
||||||
|
test:linux:
|
||||||
|
stage: test
|
||||||
|
image: docker.io/library/rust:alpine
|
||||||
|
dependencies:
|
||||||
|
- build:linux
|
||||||
|
script: cargo test --verbose
|
||||||
13
.vscode/launch.json
vendored
13
.vscode/launch.json
vendored
|
|
@ -46,6 +46,19 @@
|
||||||
"-f"
|
"-f"
|
||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Cargo test",
|
||||||
|
"cargo": {
|
||||||
|
"args": [
|
||||||
|
"test",
|
||||||
|
"--no-run",
|
||||||
|
"--tests"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"args": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -40,6 +40,9 @@ Currently implemented features, ordered by priority:
|
||||||
- [ ] Authentication and executing as a specific user
|
- [ ] Authentication and executing as a specific user
|
||||||
- [ ] Password validation (not hardcoded)
|
- [ ] Password validation (not hardcoded)
|
||||||
- [ ] SSH keys
|
- [ ] SSH keys
|
||||||
|
- Key file formats
|
||||||
|
- [x] Something custom
|
||||||
|
- [ ] OpenSSH keys
|
||||||
- [ ] Port forwarding
|
- [ ] Port forwarding
|
||||||
- [ ] SCP File Transfers
|
- [ ] SCP File Transfers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
use std::io::Result;
|
use std::io::Result;
|
||||||
use std::os::unix::io::RawFd;
|
use std::os::unix::io::RawFd;
|
||||||
|
use std::os::fd::AsRawFd;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
pub fn before_exec() -> Result<()> {
|
pub fn before_exec() -> Result<()> {
|
||||||
|
|
@ -32,3 +33,9 @@ pub fn getpty() -> (RawFd, PathBuf) {
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Sets the file descriptor to non-blocking mode.
|
||||||
|
/// This uses the **`unsafe`** keyword
|
||||||
|
pub fn non_blockify_reader(obj: &impl AsRawFd) {
|
||||||
|
todo!();
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue