Commit Graph
7 Commits
Author SHA1 Message Date
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
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 01ecb349d0 Add an on-device test suite 2020-08-31 18:20:48 +02:00