build: add option to disable tests

When building for a product, tests are not needed.

Besides, one test requires a C++ compiler, which is not always
available.

So, add an option to configure to disable building tests altogether.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2 jobs for disable-tests in 1 minute and 26 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Build
passed #2543449
build-native-autotools

00:01:26

passed #2543450
build-native-meson

00:00:49