github.com/kiali/kiali@v1.84.0/main_test.go (about) 1 package main 2 3 // This file is mandatory as otherwise the kiali binary for system tests is not generated correctly. 4 import ( 5 "flag" 6 "testing" 7 ) 8 9 var systemTest *bool 10 11 func init() { 12 systemTest = flag.Bool("systemTest", false, "Set to true when running system tests") 13 } 14 15 // Test started when the test binary is started. Only calls main. 16 func TestSystem(t *testing.T) { 17 if *systemTest { 18 main() 19 } 20 }