tests: internal: include parser.c only of FLB_PARSER is enabled
@@ -9,7 +9,6 @@ set(UNIT_TESTS_FILES
sha512.c
slist.c
router.c
- parser.c
network.c
unit_sizes.c
hashtable.c
@@ -20,6 +19,13 @@ set(UNIT_TESTS_FILES
config_map.c
)
+if(FLB_PARSER)
+ set(UNIT_TESTS_FILES
+ ${UNIT_TESTS_FILTES}
+ parser.c
+ )
+endif()
+
if(FLB_STREAM_PROCESSOR)
set(UNIT_TESTS_FILES
${UNIT_TESTS_FILES}
