From 860c41441b3bcf542b5701ae2257812879ce47b4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 19 Oct 2021 19:01:12 +0300 Subject: Set DTAIL_RUN_INTEGRATIONT_TEST to yes for integration tests --- integrationtests/dgrep_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'integrationtests/dgrep_test.go') 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" -- cgit v1.2.3