mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 12:51:09 +02:00
We build bindgen without the `which` feeature, which means it won't try to look for `rustfmt` in $PATH. So point at it explicitly so that the bindings are properly formatted. We do the same for regular Gecko builds in `build/mozconfig.rust`. Differential Revision: https://phabricator.services.mozilla.com/D56957 --HG-- extra : moz-landing-system : lando
17 lines
391 B
Bash
Executable file
17 lines
391 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -xe
|
|
|
|
source $(dirname $0)/sm-tooltool-config.sh
|
|
|
|
cd "$SRCDIR/js/rust"
|
|
|
|
cp $SRCDIR/.cargo/config.in $SRCDIR/.cargo/config
|
|
|
|
export RUSTFMT="$MOZ_FETCHES_DIR/rustc/bin/rustfmt"
|
|
export LD_LIBRARY_PATH="$MOZ_FETCHES_DIR/gcc/lib64"
|
|
# Enable backtraces if we panic.
|
|
export RUST_BACKTRACE=1
|
|
|
|
cargo test --verbose --frozen --features debugmozjs
|
|
cargo test --verbose --frozen
|