`codspeed run` up to the `--` separator. `--allow-empty`: plain scripts produce no benchmark results.
(mode: Mode)
| 147 | /// `codspeed run` up to the `--` separator. `--allow-empty`: plain scripts |
| 148 | /// produce no benchmark results. |
| 149 | fn run(mode: Mode) -> Command { |
| 150 | let mut cmd = codspeed(); |
| 151 | cmd.args([ |
| 152 | "run", |
| 153 | "--skip-upload", |
| 154 | "--allow-empty", |
| 155 | "--mode", |
| 156 | mode.name(), |
| 157 | ]); |
| 158 | if let Mode::Walltime { profiler: true } = mode { |
| 159 | cmd.arg("--enable-profiler"); |
| 160 | } |
| 161 | cmd |
| 162 | } |
| 163 | |
| 164 | fn env_check_script(name: &str, expected: &str) -> String { |
| 165 | let expected: String = expected.quoted(Bash); |
no test coverage detected