summaryrefslogtreecommitdiff
path: root/integrationtests/dtail_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/dtail_test.go')
-rw-r--r--integrationtests/dtail_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/integrationtests/dtail_test.go b/integrationtests/dtail_test.go
new file mode 100644
index 0000000..8d73174
--- /dev/null
+++ b/integrationtests/dtail_test.go
@@ -0,0 +1,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)
+}