Tag: 单位测试

unit testing运行配置

我需要一些帮助来启动和运行cmockaunit testing框架。 我的设置是: src / math / addition / add.c(+ add.h) int add(int a, int b) {return a + b;} src / math / subtraction / sub.c(+ sub.h) int sub(int a, int b) {return a – b;} Makefile文件 VPATH := src src/math src/math/addition CFLAGS += -Isrc -Isrc/math -Isrc/math/addition all: libMath clean libMath: add.o sub.o ar […]