summaryrefslogtreecommitdiff
path: root/integrationtests/dtail_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-03 13:44:28 +0300
committerPaul Buetow <paul@buetow.org>2021-10-03 13:47:25 +0300
commit599075bc6580ba77dc22ba1c1ec8aa908ef2462d (patch)
tree1baba3de19197c6b4d87d48ca9c6f79c01a1bfab /integrationtests/dtail_test.go
parentb2dbe133347ef220ff781ffeb1f8137245f5235f (diff)
add DTail color table test
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)
+}