Skip to content

Commit e4ab617

Browse files
committed
Move cross testing commands into justfile
1 parent 5a9e9df commit e4ab617

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
@@ -227,6 +227,23 @@ journey-tests-async: dbg
227227
cargo build -p gix-testtools
228228
dbg="$({{ j }} dbg)" && tests/journey.sh "$dbg/ein" "$dbg/gix" "$dbg/jtt" async
229229

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

0 commit comments

Comments
 (0)