build-scopes: add QA_SIMULATION mode

For qa-simulation scenarios, especially for testing purposes.

Task #7885

(cherry picked from commit 5edb5a5d1a)
pull/14892/head
Juliana Fajardini 2 months ago committed by Victor Julien
parent 87ab1a6953
commit f7cb04bfff

@ -537,6 +537,14 @@
])
AM_CONDITIONAL([DEBUG_VALIDATION], [test "x$enable_debug_validation" = "xyes"])
# enable qa-simulation mode -- disabled by default
AC_ARG_ENABLE(qa-simulation,
AS_HELP_STRING([--enable-qa-simulation], [Enable qa-simulation mode]))
AS_IF([test "x$enable_qa_simulation" = "xyes"], [
AC_DEFINE([QA_SIMULATION],[1],[Enable qa-simulation mode])
])
AM_CONDITIONAL([QA_SIMULATION], [test "x$enable_qa_simulation" = "xyes"])
# profiling support
AC_ARG_ENABLE(profiling,
AS_HELP_STRING([--enable-profiling], [Enable performance profiling]),[enable_profiling=$enableval],[enable_profiling=no])
@ -2643,6 +2651,7 @@ Development settings:
Unit tests enabled: ${enable_unittests}
Debug output enabled: ${enable_debug}
Debug validation enabled: ${enable_debug_validation}
QA-simulation enabled: ${enable_qa_simulation}
Fuzz targets enabled: ${enable_fuzztargets}
Generic build parameters:

@ -746,6 +746,7 @@ static void PrintBuildInfo(void)
{
const char *bits;
const char *endian;
/* If all current features are enabled, features string would be 341 characters long */
char features[2048] = "";
const char *tls;
@ -756,6 +757,9 @@ static void PrintBuildInfo(void)
#ifdef DEBUG_VALIDATION
strlcat(features, "DEBUG_VALIDATION ", sizeof(features));
#endif
#ifdef QA_SIMULATION
strlcat(features, "QA_SIMULATION ", sizeof(features));
#endif
#ifdef UNITTESTS
strlcat(features, "UNITTESTS ", sizeof(features));
#endif

Loading…
Cancel
Save