File tree 4 files changed +7
-12
lines changed
4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 39
39
- name : Run tests AARCH64
40
40
if : matrix.target == 'aarch64-unknown-none-softfloat'
41
41
run : |
42
- cargo install cargo-binutils
43
42
RUSTFLAGS="-C link-arg=-Ttests/aarch64_raspi3/link.ld" cargo test --target ${{ matrix.target }} --release
44
43
45
44
- name : Run tests RISCV64
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ clippy:
16
16
17
17
test :
18
18
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
22
22
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
26
26
27
27
fmt :
28
28
cargo fmt
Original file line number Diff line number Diff line change 4
4
5
5
//! A simple test that exits QEMU with code 13.
6
6
7
- #![ feature( asm) ]
8
7
#![ no_main]
9
8
#![ no_std]
10
9
Original file line number Diff line number Diff line change 3
3
TIMEOUT=" timeout 10"
4
4
5
5
if [[ $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
10
7
elif [[ $1 == * " riscv64" * ]]; then
11
8
$TIMEOUT qemu-system-riscv64 -M virt -bios tests/riscv64_virt/fw_jump.elf -display none -kernel $1
12
9
fi
You can’t perform that action at this time.
0 commit comments