Skip to content

Commit

Permalink
docs(readme): add cargo test instructions
Browse files Browse the repository at this point in the history
I came across a mysterious error that affected fs-test.

As I was experimenting with code affecting file reads and writes, I
falsely assumed that the issue was isolated to this test in particular.
I forgot that the rest of the tests would not get executed if the first
one were to fail.
  • Loading branch information
n0toose committed Sep 20, 2024
1 parent f407069 commit 188a96e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,22 @@ cargo run -- -v data/x86_64/hello_world
cargo run -- -v data/x86_64/hello_c
```

### Testing Uhyve using `cargo test`

Some Hermit apps that were specifically created for integration testing can be found in [tests](tests).

As per usual, all of these integration tests can be executed at once using `cargo test`:

```sh
cargo test --test '*'
```

If one of these tests fails locally under mysterious circumstances, it may be worth appending
the [--no-fail-fast][no-fail-fast] flag to the command above. This may help you establish
whether the root cause can be attributed to your environment.

[no-fail-fast]: https://doc.rust-lang.org/cargo/commands/cargo-test.html#options

### Debugging Hermit apps

Basic support of (single-core) applications is already integrated into Uhyve.
Expand Down

0 comments on commit 188a96e

Please sign in to comment.