-
Notifications
You must be signed in to change notification settings - Fork 2
/
certify.go
28 lines (22 loc) · 907 Bytes
/
certify.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package certify
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/yard-turkey/csi-certify/pkg/certify/external"
"github.com/yard-turkey/csi-certify/pkg/certify/external-bash"
customTest "github.com/yard-turkey/csi-certify/pkg/certify/test"
)
func Test(t *testing.T, customTestDriver string) {
RegisterFailHandler(Fail)
/*
Run tests using user's own testDriver implementation if the --testdriver flag is given
Run tests using user's driverDefinition YAML file if the --driverdef flag is given
Run tests using an external testDriver (bash script) if the --external-testdriver flag is provided
If any of the three flags are not given, run all testDriver implementations defined in certify/driver
*/
if external.RunCustomTestDriver && externalBash.RunCustomTestDriver {
customTest.RunCustomTestDriver(customTestDriver)
}
RunSpecs(t, "CSI Suite")
}