Skip to content

Commit d3a9f5f

Browse files
committed
Move cross testing commands into justfile
1 parent c19bf1d commit d3a9f5f

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

etc/run-cross-experiment.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

justfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,23 @@ journey-tests-async: dbg
224224
cargo build -p gix-testtools
225225
dbg="$({{ j }} dbg)" && tests/journey.sh "$dbg/ein" "$dbg/gix" "$dbg/jtt" async
226226

227+
# Build a customized `cross` container image for testing
228+
cross-image target:
229+
docker build --build-arg "TARGET={{ target }}" -t "cross-rs-gitoxide:{{ target }}" \
230+
- <etc/docker/Dockerfile.test-cross
231+
232+
# Test another platform with `cross`
233+
cross-test target: (cross-image target)
234+
NO_PRELOAD_CXX=1 cross test --workspace --no-fail-fast --target "{{ target }}" \
235+
--no-default-features --features max-pure \
236+
-- --skip realpath::fuzzed_timeout
237+
238+
# Test s390x with `cross`
239+
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu')
240+
241+
# Test Android with `cross` (limited)
242+
cross-test-android: (cross-test 'armv7-linux-androideabi')
243+
227244
# Run `cargo diet` on all crates to see that they are still in bounds
228245
check-size:
229246
etc/check-package-size.sh

0 commit comments

Comments
 (0)