Running nanopb tests on our private toolchain and hardware

10 views
Skip to first unread message

Ofek Almog

unread,
Nov 26, 2025, 4:57:06 AM (10 days ago) Nov 26
to nanopb

Hi,

I would like to run the nanopb test suite using our private toolchain and also test it on our custom hardware, both for correctness verification and for benchmarking / performance evaluation.

For the toolchain side, I understand that the correct approach is to create a new platform in SCons so that nanopb can be built and tested using our compiler and flags.

However, I am not completely sure what is the recommended procedure for testing nanopb on our actual hardware.

Could you please advise:

  • Is there an official or recommended way to adapt the nanopb tests for embedded / target hardware?

  • Are there existing examples or guidelines for running the test suite on non-host platforms?


Petteri Aimonen

unread,
Nov 26, 2025, 5:38:41 AM (10 days ago) Nov 26
to nan...@googlegroups.com
Hi,

The best example is tests/site_scons/platforms/stm32,
which runs the tests on a STM32 development board such
as STM32F7 discovery.

The other platforms currently implemented run in simulators.

--
Petteri

On Wed, Nov 26, 2025 at 01:57:05AM -0800, Ofek Almog wrote:
>
>
> Hi,
>
> I would like to run the nanopb test suite using our *private toolchain* and
> also test it on our *custom hardware*, both for *correctness verification*
> and for *benchmarking / performance evaluation*.
>
> For the toolchain side, I understand that the correct approach is to create
> a new platform in *SCons* so that nanopb can be built and tested using our
> compiler and flags.
>
> However, I am not completely sure what is the recommended procedure for
> testing nanopb on our actual hardware.
>
> Could you please advise:
>
> -
>
> Is there an official or recommended way to adapt the nanopb tests for
> embedded / target hardware?
> -
>
> Are there existing examples or guidelines for running the test suite on
> non-host platforms?
>
>
> --
> You received this message because you are subscribed to the Google Groups "nanopb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nanopb+un...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/nanopb/7f2f29e2-4320-4585-b196-289298494f4fn%40googlegroups.com.

> Hi,
>
> I would like to run the nanopb test suite using our private toolchain
> and also test it on our custom hardware, both for correctness
> verification and for benchmarking / performance evaluation.
>
> For the toolchain side, I understand that the correct approach is to
> create a new platform in SCons so that nanopb can be built and tested
> using our compiler and flags.
>
> However, I am not completely sure what is the recommended procedure for
> testing nanopb on our actual hardware.
>
> Could you please advise:
> * Is there an official or recommended way to adapt the nanopb tests
> for embedded / target hardware?
> * Are there existing examples or guidelines for running the test
> suite on non-host platforms?
>
> --
> You received this message because you are subscribed to the Google
> Groups "nanopb" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [1]nanopb+un...@googlegroups.com.
> To view this discussion visit
> [2]https://groups.google.com/d/msgid/nanopb/7f2f29e2-4320-4585-b196-289
> 298494f4fn%40googlegroups.com.
>
> References
>
> 1. mailto:nanopb+un...@googlegroups.com
> 2. https://groups.google.com/d/msgid/nanopb/7f2f29e2-4320-4585...@googlegroups.com?utm_medium=email&utm_source=footer


Reply all
Reply to author
Forward
0 new messages