diff options
| author | Christian Hopps <chopps@labn.net> | 2025-03-15 04:09:29 +0000 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2025-03-15 04:11:48 +0000 |
| commit | 986501029e04dd3a29f4d624337cb8d2ef67a8f9 (patch) | |
| tree | 3040e6059a80d79e9af877bb73bae5f6e0ef57cd /configure.ac | |
| parent | 7945af02000541ea6c1dc1ee0321cb5380768baf (diff) | |
tests: deal with configure overridden timestamp prec in unit test
Previously if you configured a different timestamp precision then
`make check` would fail as the non-default config is generated and
fails test_cli config file comparison.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 163772904d..f9f3286563 100644 --- a/configure.ac +++ b/configure.ac @@ -1054,6 +1054,11 @@ AC_MSG_FAILURE([Please specify a number from 0-12 for log precision ARG]) ;; esac with_log_timestamp_precision=${with_log_timestamp_precision:-0} +if test "${with_log_timestamp_precision}" != 0; then +AC_SUBST([LOG_TIMESTAMP_PRECISION_CLI], [" +log timestamp precision ${with_log_timestamp_precision}"]) +AM_SUBST_NOTMAKE([LOG_TIMESTAMP_PRECISION_CLI]) +fi AC_DEFINE_UNQUOTED([LOG_TIMESTAMP_PRECISION], [${with_log_timestamp_precision}], [Startup zlog timestamp precision]) AC_DEFINE_UNQUOTED([VTYSH_PAGER], ["$VTYSH_PAGER"], [What pager to use]) |
