summaryrefslogtreecommitdiff
path: root/integrationtests/dtail_test.go
blob: 8d73174b0c904d6728942c95e52787874f31a567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package integrationtests

import (
	"os"
	"testing"
)

func TestDTailColorTable(t *testing.T) {
	stdoutFile := "dtailcolortable.stdout.tmp"
	expectedStdoutFile := "dtailcolortable.expected"

	if err := runCommand(t, "../dtail", []string{"-colorTable"}, stdoutFile); err != nil {
		t.Error(err)
		return
	}
	if err := compareFiles(t, stdoutFile, expectedStdoutFile); err != nil {
		t.Error(err)
		return
	}

	os.Remove(stdoutFile)
}