Skip to content

Commit

Permalink
src/poky:ptest-cargo.bbclass: create class
Browse files Browse the repository at this point in the history
This new class offers the possibility to build rust unit tests
(and integration tests) and find them correctly.
Due to non deterministic names of generated binaries, a custom
parsing of build result must be performed.
See rust-lang/cargo#1924

All rust projects will generate a test binary with "cargo build --tests"
command, even if there are no test defined in source code.
The binary will just output that it ran 0 tests.

(From OE-Core rev: dad9bad239d757ae0b159fe5f1276b6856547b4c)

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
fmartinsons authored and rpurdie committed May 5, 2023
1 parent d59fa21 commit 83f702a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poky
Submodule poky updated from 92036d to e6b18a

0 comments on commit 83f702a

Please sign in to comment.