diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-10-19 19:01:12 +0300 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-10-19 19:03:03 +0300 |
| commit | 860c41441b3bcf542b5701ae2257812879ce47b4 (patch) | |
| tree | 9940e557b86e346cc3989c45e4f512f58dab850b /integrationtests/dgrep_test.go | |
| parent | 10314cef906fd9b73e003be69c2f6b7b3d66570c (diff) | |
Set DTAIL_RUN_INTEGRATIONT_TEST to yes for integration tests
Diffstat (limited to 'integrationtests/dgrep_test.go')
| -rw-r--r-- | integrationtests/dgrep_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/integrationtests/dgrep_test.go b/integrationtests/dgrep_test.go index b63ac45..8fe0a49 100644 --- a/integrationtests/dgrep_test.go +++ b/integrationtests/dgrep_test.go @@ -4,9 +4,15 @@ import ( "context" "os" "testing" + + "github.com/mimecast/dtail/internal/config" ) func TestDGrep(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } inFile := "mapr_testdata.log" stdoutFile := "dgrep.stdout.tmp" expectedStdoutFile := "dgrep.txt.expected" @@ -28,6 +34,10 @@ func TestDGrep(t *testing.T) { } func TestDGrep2(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } inFile := "mapr_testdata.log" stdoutFile := "dgrep2.stdout.tmp" expectedStdoutFile := "dgrep2.txt.expected" @@ -49,6 +59,10 @@ func TestDGrep2(t *testing.T) { } func TestDGrepContext(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } inFile := "mapr_testdata.log" stdoutFile := "dgrepcontext.stdout.tmp" expectedStdoutFile := "dgrepcontext.txt.expected" @@ -71,6 +85,10 @@ func TestDGrepContext(t *testing.T) { } func TestDGrepContext2(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } inFile := "mapr_testdata.log" stdoutFile := "dgrepcontext2.stdout.tmp" expectedStdoutFile := "dgrepcontext2.txt.expected" |
