[cmake] use same petsc test on all platforms