The ingredient for this recipe will be a tiny Python script (test.py) that always returns 0. To keep it super simple and to maintain focus on the CMake aspect, the test script does nothing other than wait for two seconds; but, we can imagine that in real life, this test script would perform more meaningful work:
import sys
import time
# wait for 2 seconds
time.sleep(2)
# report success
sys.exit(0)