Commit Graph

10 Commits

Author SHA1 Message Date
Tamir Duberstein
a9945b0957 xtask: implement unit tests in VM
This is quite useful when developing on macOS.
2025-12-31 05:01:43 -05:00
Tamir Duberstein
29dc775535 test-distro: appease unreachable code check
See https://github.com/rust-lang/rust/commit/ff6dc928c5e33ce8e65c6911a7.
2025-10-13 08:25:59 -04:00
Tamir Duberstein
66ed37c8a9 integration-test: add LSM 2025-10-08 08:59:04 -07:00
Tamir Duberstein
de42b80c74 aya,ebpf: add BPF_MAP_TYPE_SK_STORAGE
This map type requires BTF, and we can finally do it!
2025-10-05 17:32:21 -04:00
Tamir Duberstein
f08772ec2f test-distro: enable rust backtrace 2025-07-07 09:12:53 -04:00
Tamir Duberstein
583709f6a0 appease clippy::uninlined-format-args 2025-04-24 06:42:21 -04:00
Tamir Duberstein
5732b2c203 test-distro: build without cross toolchain
Make the xz2 dependency optional to allow building without a C cross
compiler. This allows clippy.sh to be used on e.g. macOS more easily:

```
./clippy.sh --target x86_64-unknown-linux-gnu --exclude-features xz2
```
2025-04-08 07:59:35 -04:00
Tamir Duberstein
edae5cd676 test-distro: reduce indentation 2025-04-08 07:59:35 -04:00
Tamir Duberstein
35279b7c7b test-distro: extract common decompression code
Remove vector preallocation in the uncompressed case; the standard
library implementation of `io::Read` for `fs::File` already does this.
2025-04-08 07:59:35 -04:00
Dave Tucker
abe5f743a3 feat: Refactor init into test-distro
The init module contains a small init system for running our integration
tests against a kernel. While we don't need a full-blown linux distro,
we do need some utilities.

Once such utility is `modprobe` which allows us to load kernel modules.
Rather than create a new module for this utility, I've instead
refactored `init` into `test-distro` which is a module that contains
multiple binaries.

The xtask code has been adjusted to ensure these binaries are inserted
into the correct places in our cpio archive, as well as bringing in the
kernel modules.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2025-03-19 19:11:15 +00:00