Getting ready

In this example, we assume that we have six tests in total; the first three tests are shorter, and have the names feature-a, feature-b, and feature-c. We also have three longer tests, with the names feature-d, benchmark-a, and benchmark-b. In this recipe, we can represent these tests with Python scripts, where we can adjust the sleep time:

import sysimport time# wait for 0.1 secondstime.sleep(0.1)# finally report successsys.exit(0)

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.