Commit Graph
7 Commits
Author SHA1 Message Date
Jorge AparicioandGitHub 733a38a272 update defmt deps to v0.3 (#56)
* bump defmt to v0.3

remove Cargo features which are no longer needed

* remove `timestamp!`

it's no longer mandatory and a monotonic counter does not add much value given that `defmt-rtt`
works by disabling interrupts so one won't see logs out of order anyways (which would the case for a
lock-free multi-channel `Logger`)

* use println! in most the examples

so that all examples print something when `DEFMT_LOG` is unset

* make overflow example terminate in less steps

also include an estimate of the stack pointer to show the stack grows downwards towards the RAM
boundary
2021-11-10 04:46:56 +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