Skip to content

Commit

Permalink
custom_calyptia: tests: Add missing declarations
Browse files Browse the repository at this point in the history
To link those missing declaration functions, we need to define for stub
in the custom_calyptia testing files.

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Dec 5, 2024
1 parent 80220bc commit 7f2e333
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/runtime/custom_calyptia_input_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
#include "flb_tests_runtime.h"
#include "../../plugins/custom_calyptia/calyptia.h"

const char *flb_input_get_property(const char *key,
struct flb_input_instance *ins);
struct flb_input_instance *flb_input_new(struct flb_config *config,
const char *input, void *data,
int public_only);
void flb_input_instance_destroy(struct flb_input_instance *ins);

/* Test context structure */
struct test_context {
struct calyptia *ctx;
Expand Down
6 changes: 6 additions & 0 deletions tests/runtime/custom_calyptia_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
#include <fluent-bit/flb_custom.h>
#include "flb_tests_runtime.h"

const char *flb_input_get_property(const char *key,
struct flb_input_instance *ins);
struct flb_input_instance *flb_input_new(struct flb_config *config,
const char *input, void *data,
int public_only);

flb_sds_t custom_calyptia_pipeline_config_get(struct flb_config *ctx);

void flb_custom_calyptia_pipeline_config_get_test()
Expand Down

0 comments on commit 7f2e333

Please sign in to comment.