Skip to content

Commit a510b22

Browse files
committed
Make it easier to pass arguments to test executable
So option arguments like `--test-threads=1` that must come after `--` can be passed through `just` to `cross`, while still being able to customize options like `--features` that go before it.
1 parent 84808c0 commit a510b22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

justfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,17 @@ cross-image target:
231231
-f etc/docker/Dockerfile.test-cross etc/docker/test-cross-context
232232

233233
# Test another platform with `cross`
234-
cross-test target *cargo-test-args: (cross-image target)
234+
cross-test target options test-options: (cross-image target)
235235
CROSS_CONFIG=etc/docker/test-cross.toml NO_PRELOAD_CXX=1 \
236236
cross test --workspace --no-fail-fast --target {{ target }} \
237-
{{ cargo-test-args }} -- --skip realpath::fuzzed_timeout
237+
{{ options }} -- --skip realpath::fuzzed_timeout {{ test-options }}
238238

239239
# Test s390x with `cross`
240-
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu')
240+
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu' '' '')
241241

242242
# Test Android with `cross` (max-pure)
243-
cross-test-android: (cross-test 'armv7-linux-androideabi' \
244-
'--no-default-features' '--features' 'max-pure')
243+
cross-test-android: (cross-test 'armv7-linux-androideabi'
244+
'--no-default-features --features max-pure' '')
245245

246246
# Run `cargo diet` on all crates to see that they are still in bounds
247247
check-size:

0 commit comments

Comments
 (0)