以 x509_check_cert_pkey_test为例
1.链接设置:通过查找makefile文件知道需要链接:
test\libtestutil.lib
libcrypto.lib 包含main函数
2.包含文件设置:
3.工程:
4.设置调试参数:测试命令行在下面文件中
test\recipes\60-test_x509_check_cert_pkey.t
说明:
1. libtestuntil.lib 中实现了main,并且会调用setup_tests():
2. 测试文件中必须实现 setup_tests 函数:
运行结果: