Prepare to only use CMake even for genering the result dir with a script
inside each tests