summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/dcat_test.go')
-rw-r--r--integrationtests/dcat_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/integrationtests/dcat_test.go b/integrationtests/dcat_test.go
new file mode 100644
index 0000000..370ea25
--- /dev/null
+++ b/integrationtests/dcat_test.go
@@ -0,0 +1,22 @@
+package integrationtests
+
+import (
+ "os"
+ "testing"
+)
+
+func TestDCat(t *testing.T) {
+ testdataFile := "testdata.txt"
+ stdoutFile := "dcat.out"
+
+ if err := runCommand(t, "../dcat", []string{"-spartan", testdataFile}, stdoutFile); err != nil {
+ t.Error(err)
+ return
+ }
+
+ if err := compareFiles(t, stdoutFile, testdataFile); err != nil {
+ t.Error(err)
+ return
+ }
+ os.Remove(stdoutFile)
+}