加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.test 1000 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Are we running a specific module's tests or just the core tests?
ifndef module
module=core
endif
.PHONY: test unit_tests system_tests
ifneq (,$(findstring UNIT_TESTS,$(DEFS)))
include Makefile.openssl
misclibs=lib/digest_auth/libdigest_auth.a
UNIT_TESTS=1
endif
ensure_test_defs:
ifndef UNIT_TESTS
@! grep -q '^DEFS+= -DUNIT_TESTS' Makefile.conf && \
echo '\nDEFS+= -DUNIT_TESTS' >> Makefile.conf && \
echo "-DUNIT_TESTS was not enabled in Makefile.conf," \
"run 'make test' again." && exit 1 || true
else
@true
endif
unit_tests: ensure_test_defs $(NAME)
-@echo " ============= Start Unit Tests ============="
./$(NAME) -dd -T $(module) -w . -a HP_MALLOC
-@echo " ================================================"
-@echo " ======== Passed All Tests! ᕦ(ò_óˇ)ᕤ ========"
-@echo " ================================================"
system_tests:
$(MAKE) -C test/ all
test: unit_tests #system_tests #TODO: bring these up to date!
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化