1
0
Fork 0
mirror of https://gitlab.redox-os.org/CoffeeCode/redox-ssh.git synced 2025-12-28 13:42:18 +01:00

CI&Docs: Also build&test Linux, update docs

This commit is contained in:
Laurenz 2024-10-09 11:47:55 +02:00
parent b7f388ce02
commit 840d99089c
Signed by: C0ffeeCode
SSH key fingerprint: SHA256:jnEltBNftC3wUZESLSMvM9zVPOkkevGRzqqoW2k2ORI
4 changed files with 38 additions and 1 deletions

View file

@ -1,4 +1,4 @@
image: "redoxos/redoxer"
image: "docker.io/redoxos/redoxer"
stages:
- build
@ -17,3 +17,17 @@ test:redox:
dependencies:
- build:redox
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
View file

@ -46,6 +46,19 @@
"-f"
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo test",
"cargo": {
"args": [
"test",
"--no-run",
"--tests"
]
},
"args": []
}
]
}

View file

@ -40,6 +40,9 @@ Currently implemented features, ordered by priority:
- [ ] Authentication and executing as a specific user
- [ ] Password validation (not hardcoded)
- [ ] SSH keys
- Key file formats
- [x] Something custom
- [ ] OpenSSH keys
- [ ] Port forwarding
- [ ] SCP File Transfers

View file

@ -1,5 +1,6 @@
use std::io::Result;
use std::os::unix::io::RawFd;
use std::os::fd::AsRawFd;
use std::path::PathBuf;
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!();
}