Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对服务器运行测试的示例是什么?换句话说,您将如何运行服务器,然后从 make 文件针对服务器运行测试客户端?例如,我想运行make test它将针对服务器运行所有测试以验证它是否通过了所有测试。我知道如何为单个程序运行测试,比如针对库,但不知道如何同时运行两个依赖于测试的程序。
make test
拥有一个生成多个进程并编排它们的 shell 脚本会更方便,因为 makefile 配方的每一行都是对 shell 的新调用。使用 make 调用该测试 shell 脚本,该脚本将执行以下操作: