libsecp256k1 is designed to also run on bare metal microcontrollers, but CI currently does not cover such a target. This PR adds a job that cross-compiles the tests with arm-none-eabi-gcc and picolibc and runs them on an emulated STM32F405 (Cortex-M4 [1], 1 MiB of flash, 128 KiB of SRAM) using qemu-system-arm. Output, arguments and the exit code are passed between target and host via ARM semihosting, so no target-specific code is needed.
The first two commits (adding a --exclude option to the unit test framework, more thorough parallel test support detection) are useful independently of the CI job and could each be split out into their own PR if further discussion is needed.
Limitations: the job uses the smallest precomputed tables (ECMULTWINDOW: 2, ECMULTGENKB: 2), disables the silentpayments module (its test vectors do not fit into the flash), and skips ecmult_multi_tests and the four slowest ellswift tests. The examples, benchmarks, ctime tests and the symbol check are not run.
[1] The Cortex-M4 was chosen because it is common in hardware wallets that use libsecp256k1 (or the secp256k1-zkp fork), e.g., the BitBox02 (ATSAMD51), the COLDCARD Mk4 (STM32L4S5), the Trezor Model T (STM32F427) and Specter-DIY (STM32F469).