sh: add test for cmake, make and make doc

We need to add test if cmake, make and make doc failed.