Skip to content

Commit

Permalink
Minor (toolchain) fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-richter committed Jan 15, 2022
1 parent c0bd96f commit 415ab26
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Run tests AARCH64
if: matrix.target == 'aarch64-unknown-none-softfloat'
run: |
cargo install cargo-binutils
RUSTFLAGS="-C link-arg=-Ttests/aarch64_raspi3/link.ld" cargo test --target ${{ matrix.target }} --release
- name: Run tests RISCV64
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ clippy:

test:
RUSTFLAGS="-C link-arg=-T$(LINKER_SCRIPT_AARCH64)" \
cargo test \
--target $(TARGET_AARCH64) \
--release
cargo test \
--target $(TARGET_AARCH64) \
--release
RUSTFLAGS="-C link-arg=-T$(LINKER_SCRIPT_RISCV64)" \
cargo test \
--target $(TARGET_RISCV64) \
--release
cargo test \
--target $(TARGET_RISCV64) \
--release

fmt:
cargo fmt
Expand Down
1 change: 0 additions & 1 deletion tests/exit_13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

//! A simple test that exits QEMU with code 13.
#![feature(asm)]
#![no_main]
#![no_std]

Expand Down
5 changes: 1 addition & 4 deletions tests/test_runner_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
TIMEOUT="timeout 10"

if [[ $1 == *"aarch64"* ]]; then
rust-objcopy --strip-all -O binary $1 $1.img
STRIPPED_BINARY=$(echo $1.img | sed -e 's/.*target/target/g')

$TIMEOUT qemu-system-aarch64 -M raspi3 -display none -semihosting -kernel $STRIPPED_BINARY
$TIMEOUT qemu-system-aarch64 -M raspi3 -display none -semihosting -kernel $1
elif [[ $1 == *"riscv64"* ]]; then
$TIMEOUT qemu-system-riscv64 -M virt -bios tests/riscv64_virt/fw_jump.elf -display none -kernel $1
fi
Expand Down

0 comments on commit 415ab26

Please sign in to comment.