Skip to content

extend test suite #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ env:

matrix:
include:
# Nightly, for testing
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly

# Linux
- env: TARGET=i686-unknown-linux-gnu DISABLE_TESTS=1
- env: TARGET=i686-unknown-linux-musl DISABLE_TESTS=1
Expand All @@ -22,10 +26,6 @@ matrix:
- env: TARGET=x86_64-apple-darwin DISABLE_TESTS=1
os: osx

# Nightly, for testing
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly

install:
- sh ci/install.sh
- source ~/.cargo/env || true
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 27 additions & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test_svd() {
https://github.com/raw/posborne/cmsis-svd/python-0.4/data/$1/${2}.svd \
> $td/${2}.svd
target/$TARGET/release/svd2rust -i $td/${2}.svd > $td/src/lib.rs
cargo build --manifest-path $td/Cargo.toml
cargo check --manifest-path $td/Cargo.toml
}

main() {
Expand All @@ -30,11 +30,37 @@ main() {
echo 'cortex-m = "0.2.0"' >> $td/Cargo.toml
echo 'vcell = "0.1.0"' >> $td/Cargo.toml

# FIXME
# test_svd Atmel AT91SAM9CN11

test_svd Freescale MK81F25615

test_svd Fujitsu MB9AF10xN

test_svd Holtek ht32f125x

test_svd Nordic nrf51

# FIXME
# test_svd NXP LPC43xx_svd_v5.svd

test_svd Nuvoton M051_Series

# FIXME
# test_svd SiliconLabs SIM3C1x4_SVD

# FIXME #102
# test_svd Spansion MB9AF10xN

test_svd STMicro STM32F100xx
test_svd STMicro STM32F103xx
test_svd STMicro STM32F30x

# FIXME
# test_svd TexasInstrument TM4C1230C3PM

test_svd Toshiba M061

rm -rf $td
}

Expand Down