Commit Graph
13 Commits
Author SHA1 Message Date
Emil Fresk fb03cda302 More clarifications 2022-07-02 20:09:29 +02:00
Emil Fresk 706ffce2fc Updated to RTIC 1.0 and defmt 0.3 2022-01-03 19:02:57 +01:00
Fabian Viöl 1ebc0ac43f Disable test harness for lib target
Without this change, if `testsuite/src/lib.rs` will be crated and `cargo
test` is invoked, cargo will try to link libtest with the crate.

As this crate is `no_std` and will usually be run for targets, where no
std library exists and therefor also no libtest, this will fail with an
error similar to this:

    error[E0463]: can't find crate for `test`

    error: aborting due to previous error

    For more information about this error, try `rustc --explain E0463`.
    error: could not compile `testsuite`

To circumvent this issue, disable the harness for lib as well.

Because the crates lib.rs is handled as a binary for test mode,
rust will look for a main function.
Add a minimal lib.rs, so that it will compile and run, when
test is invoked.
2021-06-06 16:10:08 +02:00
Urhengulas 1d0750653f Update dependencies 2021-02-22 22:16:41 +01:00
Jorge Aparicio 2a34a5279d testsuite: import defmt assert macros
these imports will override the ones from the core prelude
2020-12-11 12:29:03 +01:00
Jonas SchievinkandGitHub 2d901d63db Actually use the defmt assertion macros 2020-12-01 22:05:41 +01:00
Jorge Aparicio ae0df60ec2 use defmt::assert; add defmt::panic_handler 2020-11-24 17:38:08 +01:00
Jorge Aparicio 6c5aa23717 remove unused import 2020-11-16 16:13:45 +01:00
Jorge Aparicio fbd9d93138 use defmt-test in the test suite 2020-11-13 15:45:03 +01:00
Jorge Aparicio e5cf89b4eb use defmt-test in the test suite 2020-11-13 15:42:07 +01:00
Jorge Aparicio da11b67bbb use crates.io versions
also enable panic-probe's 'print-defmt' so panic messages are printed
2020-11-11 14:20:46 +01:00
Jonas Schievink f13fab5841 project -> crate name 2020-08-31 19:16:37 +02:00
Jonas Schievink 01ecb349d0 Add an on-device test suite 2020-08-31 18:20:48 +02:00