Skip to content

Commit

Permalink
Added infrastructure to do integration testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Apr 30, 2024
1 parent 71cf19e commit afd41c5
Show file tree
Hide file tree
Showing 12 changed files with 598 additions and 49 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
env:
NSS_WRAPPER_PASSWD: contrib/fixtures/passwd
NSS_WRAPPER_GROUP: contrib/fixtures/group
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
run: |
cargo test
LD_PRELOAD=libnss_wrapper.so cargo test --features nsswrapper nsswrapper_
Expand Down
125 changes: 90 additions & 35 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ tracing = "0.1.40"

[profile.release]
lto = true

[dev-dependencies]
greetd-stub = "0.2.0"
tempfile = "3.10.1"
unicode-width = "0.1.12"
1 change: 1 addition & 0 deletions src/greeter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ impl Greeter {
selected: 0,
};

#[cfg(not(test))]
greeter.parse_options().await;

greeter.sessions = Menu {
Expand Down
Loading

0 comments on commit afd41c5

Please sign in to comment.