Skip to content

Commit

Permalink
Enable tracing for raft tests
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Apr 29, 2024
1 parent 06230ec commit c104c0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ raft_core_fuzzy_test_LDFLAGS = -no-install
raft_core_fuzzy_test_LDADD = libtest.la libraft.la

raft_uv_unit_test_SOURCES = \
src/tracing.c \
src/raft/err.c \
src/raft/heap.c \
src/raft/syscall.c \
Expand Down
2 changes: 2 additions & 0 deletions test/raft/lib/runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#define TEST_RUNNER_H_

#include "munit.h"
#include "../../../src/tracing.h"

/* Top-level suites array declaration.
*
Expand All @@ -24,6 +25,7 @@ extern int _main_suites_n;
int main(int argc, char *argv[MUNIT_ARRAY_PARAM(argc)]) \
{ \
MunitSuite suite = {(char *)"", NULL, _main_suites, 1, 0}; \
dqliteTracingMaybeEnable(true); \
return munit_suite_main(&suite, (void *)NAME, argc, argv); \
}

Expand Down

0 comments on commit c104c0a

Please sign in to comment.