2024-04-21 22:28:35 +00:00
|
|
|
# Testing
|
|
|
|
|
|
|
|
## Complement
|
|
|
|
|
|
|
|
Have a look at [Complement's repository][complement] for an explanation of what
|
|
|
|
it is.
|
|
|
|
|
2024-05-12 04:37:00 +00:00
|
|
|
To test against Complement, with [Lix][lix] and direnv installed and set up, you can:
|
2024-04-21 22:28:35 +00:00
|
|
|
|
2024-04-23 21:59:15 +00:00
|
|
|
* Run `./bin/complement "$COMPLEMENT_SRC" ./path/to/logs.jsonl ./path/to/results.jsonl`
|
2024-04-21 22:28:35 +00:00
|
|
|
to build a Complement image, run the tests, and output the logs and results
|
2024-05-12 04:22:10 +00:00
|
|
|
to the specified paths. This will also output the OCI image at `result`
|
2024-04-21 22:28:35 +00:00
|
|
|
* Run `nix build .#complement` from the root of the repository to just build a
|
2024-05-12 04:22:10 +00:00
|
|
|
Complement OCI image outputted to `result` (it's a `.tar.gz` file)
|
|
|
|
* Or download the latest Complement OCI image from the CI workflow artifacts output
|
|
|
|
from the commit/revision you want to test (e.g. from main) [here][ci-workflows]
|
2024-04-21 22:28:35 +00:00
|
|
|
|
2024-05-12 04:37:00 +00:00
|
|
|
[lix]: https://lix.systems/
|
2024-05-12 04:22:10 +00:00
|
|
|
[ci-workflows]: https://github.com/girlbossceo/conduwuit/actions/workflows/ci.yml?query=event%3Apush+is%3Asuccess+actor%3Agirlbossceo
|
2024-04-21 22:28:35 +00:00
|
|
|
[complement]: https://github.com/matrix-org/complement
|