Extract the paths we want to test and write them to a file.