File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 3939 - name : Run tests AARCH64
4040 if : matrix.target == 'aarch64-unknown-none-softfloat'
4141 run : |
42- cargo install cargo-binutils
4342 RUSTFLAGS="-C link-arg=-Ttests/aarch64_raspi3/link.ld" cargo test --target ${{ matrix.target }} --release
4443
4544 - name : Run tests RISCV64
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ clippy:
1616
1717test :
1818 RUSTFLAGS=" -C link-arg=-T$( LINKER_SCRIPT_AARCH64) " \
19- cargo test \
20- --target $(TARGET_AARCH64 ) \
21- --release
19+ cargo test \
20+ --target $(TARGET_AARCH64) \
21+ --release
2222 RUSTFLAGS="-C link-arg=-T$(LINKER_SCRIPT_RISCV64)" \
23- cargo test \
24- --target $(TARGET_RISCV64 ) \
25- --release
23+ cargo test \
24+ --target $(TARGET_RISCV64) \
25+ --release
2626
2727fmt :
2828 cargo fmt
Original file line number Diff line number Diff line change 44
55//! A simple test that exits QEMU with code 13.
66
7- #![ feature( asm) ]
87#![ no_main]
98#![ no_std]
109
Original file line number Diff line number Diff line change 33TIMEOUT=" timeout 10"
44
55if [[ $1 == * " aarch64" * ]]; then
6- rust-objcopy --strip-all -O binary $1 $1 .img
7- STRIPPED_BINARY=$( echo $1 .img | sed -e ' s/.*target/target/g' )
8-
9- $TIMEOUT qemu-system-aarch64 -M raspi3 -display none -semihosting -kernel $STRIPPED_BINARY
6+ $TIMEOUT qemu-system-aarch64 -M raspi3 -display none -semihosting -kernel $1
107elif [[ $1 == * " riscv64" * ]]; then
118 $TIMEOUT qemu-system-riscv64 -M virt -bios tests/riscv64_virt/fw_jump.elf -display none -kernel $1
129fi
You can’t perform that action at this time.
0 commit comments