Skip to content

Commit de3a621

Browse files
committed
Add test with 64-bit registers
1 parent e6af7fd commit de3a621

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

ci/script.sh

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,12 @@ main() {
427427
cd $td &&
428428
curl -LO \
429429
https://github.com/pftbest/msp430g2553/raw/v0.1.0/msp430g2553.svd
430-
cd $td &&
431-
curl -LO \
432-
https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x.svd
430+
cd $td &&
431+
curl -LO \
432+
https://raw.githubusercontent.com/riscv-rust/e310x/master/e310x.svd
433+
cd $td &&
434+
curl -LO \
435+
https://raw.githubusercontent.com/riscv-rust/k210-pac/master/k210.svd
433436
)
434437

435438
local cwd=$(pwd)
@@ -445,7 +448,7 @@ main() {
445448

446449
cargo check --manifest-path $td/Cargo.toml
447450

448-
# Test RISC-V
451+
# Test RISC-V FE310
449452
pushd $td
450453

451454
$cwd/target/$TARGET/release/svd2rust --target riscv -i $td/e310x.svd
@@ -455,6 +458,17 @@ main() {
455458
popd
456459

457460
cargo check --manifest-path $td/Cargo.toml
461+
462+
# Test RISC-V K210
463+
pushd $td
464+
465+
$cwd/target/$TARGET/release/svd2rust --target riscv -i $td/k210.svd
466+
mv $td/lib.rs $td/src/lib.rs
467+
rustfmt $td/src/lib.rs || true
468+
469+
popd
470+
471+
cargo check --manifest-path $td/Cargo.toml
458472
;;
459473

460474
Nordic)

0 commit comments

Comments
 (0)