mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-08 12:45:22 -05:00
Kernel UT: Enable preprocessor when running cflow in callgraph.py (#530)
* Add INCLUDE_DIR to the commandline call to cflow in callgraph.py This removes dependent functions from the list when they are disabled in the FreeRTOS config. * Add argparse to callgraph.py so that no output file is created on failure.
This commit is contained in:
parent
f1da2515c2
commit
f39765be22
2 changed files with 31 additions and 4 deletions
|
|
@ -120,7 +120,7 @@ $(MOCK_HDR_LIST) $(MOCK_SRC_LIST) : $(PROJECT_DIR)/$(PROJECT).yml $(MOCK_FILES_F
|
|||
# Generate callgraph for coverage filtering
|
||||
$(PROJ_DIR)/callgraph.json : $(PROJ_SRC_LIST)
|
||||
mkdir -p $(PROJ_DIR)
|
||||
python3 $(UT_ROOT_DIR)/tools/callgraph.py $^ > $@
|
||||
python3 $(UT_ROOT_DIR)/tools/callgraph.py --out $@ $^
|
||||
|
||||
# preprocess proj files to expand macros for coverage
|
||||
$(PROJ_DIR)/%.i : $(KERNEL_DIR)/%.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue