setupish tweaks to make-rom & add unit-tests.sh
This commit is contained in:
parent
cc2eabd500
commit
d1941da9a9
2 changed files with 20 additions and 1 deletions
|
@ -5,8 +5,11 @@ eval $(grep '^name *=' Cargo.toml | head -n1 | sed 's/ //g')
|
|||
|
||||
set -exo pipefail
|
||||
|
||||
cargo build --release
|
||||
# terribler
|
||||
RUSTC_BOOTSTRAP=1 cargo -Z build-std build --release
|
||||
|
||||
arm-none-eabi-objcopy -O binary "target/armv4t-none-eabi/release/$name" "target/${name}.gba"
|
||||
|
||||
which gbafix || cargo install gbafix
|
||||
|
||||
gbafix "target/${name}.gba"
|
||||
|
|
16
unit-tests.sh
Executable file
16
unit-tests.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
export CARGO_TARGET_THUMBV4T_NONE_EABI_RUNNER=mgba-test-runner
|
||||
export CARGO_TARGET_ARMV4T_NONE_EABI_RUNNER=mgba-test-runner
|
||||
# terrible
|
||||
export RUSTC_BOOTSTRAP=1
|
||||
|
||||
set -exo pipefail
|
||||
|
||||
# terrible
|
||||
if ! which mgba-test-runner; then
|
||||
pkg-config libelf
|
||||
cargo install --git https://github.com/agbrs/agb --rev a7f9fdf01118a7a77d4dcf72f2b74a1961458b36 mgba-test-runner
|
||||
fi
|
||||
|
||||
cargo -Z build-std test
|
Loading…
Reference in a new issue