Compare commits

...

1 Commits

Author SHA1 Message Date
link2xt
60193dd527 Add script to benchmark the tests 2023-10-09 13:13:25 +00:00
2 changed files with 16 additions and 0 deletions

View File

@@ -6,10 +6,18 @@ and an own build machine.
## Description of scripts
Scripts should be ran from the root of the repository,
for example:
```
$ scripts/clippy.sh
```
- `clippy.sh` runs `cargo clippy` for all Rust code in the project.
- `deny.sh` runs `cargo deny` for all Rust code in the project.
- `benchmark-tests.sh`
- `../.github/workflows` contains jobs run by GitHub Actions.
- `remote_tests_python.sh` rsyncs to a build machine and runs

8
scripts/benchmark-tests.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
# Benchmark the tests with `hyperfine`.
set -e
# `--tests` selects unit tests but not the documentation tests.
# `--skip` arguments skip online tests.
hyperfine --warmup 1 --min-runs 20 "cargo test --tests --release -- --skip imex::transfer::tests::test_drop_provider --skip imex::transfer::tests::test_send_receive --skip oauth2::tests::test_oauth_from_mx --skip oauth2::tests::test_get_oauth2_token --skip oauth2::tests::test_get_oauth2_addr --skip configure::tests::test_no_panic_on_bad_credentials --skip qr_code_generator::tests::test_generate_backup_qr"