import . "gopkg.in/check.v1" func TestAll(t *testing.T) { if _, err := os.Stat("/tmp/testsuite.lock"); os.IsNotExist(err) { if _, err := os.Create("/tmp/testsuite.lock"); err != nil { t.FailNow() } for _, test := range ListAll(nil) { output, _ := exec.Command("/bin/sh", "-c", fmt.Sprintf("./fw.test -check.v -check.f %s", test)).CombinedOutput() fmt.Printf("%s\n", output) } os.Remove("/tmp/testsuite.lock") } else { TestingT(t) } }