Let us assume that our test set contains tests labeled a, b, ..., j, each with a specific time duration:
Tests | Duration (in time units) |
a, b, c, d | 0.5 |
e, f, g | 1.5 |
h | 2.5 |
i | 3.5 |
j | 4.5 |
The time units can be minutes, but to keep it simple and short, we will use seconds. For simplicity, we can represent test a, which consumes 0.5 time units, with a Python script:
import sysimport time# wait for 0.5 secondstime.sleep(0.5)# finally report successsys.exit(0)
The other tests can be represented accordingly. We will place these scripts one directory below CMakeLists.txt, in a directory called test.