func TestSystem(t *testing.T) {
	if *systemTest {
		main()
	}
}
Test started when the test binary is started. Only calls main.
package main
import (
	"flag"
	"testing"
)
var systemTest *bool
func init() {
	systemTest = flag.Bool("systemTest", false, "Set to true when running system tests")
}