Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

✨ feature(daemon,pid1): WIP cgroup driver #104

Draft
wants to merge 3 commits into
base: mistress
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run all tests on latest stable Rust
on:
push:
branches:
- mistress
pull_request:
branches:
- mistress

jobs:
run-tests:
if: github.actor != 'dependabot'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
with:
key: unit
- name: Run unit tests
run: cargo test
138 changes: 138 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'libsquish'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=libsquish"
],
"filter": {
"name": "libsquish",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'daemon'",
"cargo": {
"args": [
"build",
"--bin=daemon",
"--package=daemon"
],
"filter": {
"name": "daemon",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'daemon'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=daemon",
"--package=daemon"
],
"filter": {
"name": "daemon",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'cli'",
"cargo": {
"args": [
"build",
"--bin=cli",
"--package=cli"
],
"filter": {
"name": "cli",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'cli'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=cli",
"--package=cli"
],
"filter": {
"name": "cli",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'pid1'",
"cargo": {
"args": [
"build",
"--bin=pid1",
"--package=pid1"
],
"filter": {
"name": "pid1",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'pid1'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=pid1",
"--package=pid1"
],
"filter": {
"name": "pid1",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
59 changes: 59 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions daemon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ edition = "2018"
[dependencies]
libsquish = { path = "../libsquish" }

async-recursion = "1.0.0"
async-trait = "0.1.52"
flate2 = "1.0.22"
dbus-tokio = "0.7.5"
dbus = "0.9.5"
haikunator = "0.1.2"
hex = "0.4.3"
hmac-sha256 = "1.1.2"
Expand Down
Loading