mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 00:37:44 -04:00
Generate JUnit style report for kernel unit test (#504)
* Add JUnit test report to ut * Add JUnit test report with make run * Fix gcc path
This commit is contained in:
parent
63aec3607d
commit
c4d8002634
1 changed files with 12 additions and 8 deletions
|
@ -52,9 +52,12 @@ $(LIB_DIR)/libunity.so : ${UNITY_SRC_DIR}/unity.c \
|
|||
Makefile | directories
|
||||
${CC} -o $@ -shared -fPIC $<
|
||||
|
||||
run : $(UNITS) zero_coverage | directories
|
||||
for f in $(BIN_DIR)/*; do \
|
||||
$${f}; done
|
||||
run : $(UNITS) directories
|
||||
-rm $(BUILD_DIR)/unit_test_report.txt
|
||||
for f in $(BIN_DIR)/*; do \
|
||||
$${f} | tee -a $(BUILD_DIR)/unit_test_report.txt ; done
|
||||
cd $(BUILD_DIR) && \
|
||||
ruby $(UNITY_BIN_DIR)/parse_output.rb -xml $(BUILD_DIR)/unit_test_report.txt
|
||||
|
||||
run_col : $(UNITS) zero_coverage | directories
|
||||
for f in $(BIN_DIR)/*; do \
|
||||
|
@ -82,3 +85,4 @@ coverage : run_col
|
|||
genhtml $(BUILD_DIR)/cmock_test.info --branch-coverage \
|
||||
--output-directory $(COVERAGE_DIR)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue