summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
blob: 342ebd023afa9cee3db07f600d19b4e79f18b32e (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 TestDCat(t *testing.T) {
	testdataFile := "dcat.txt.expected"
	stdoutFile := "dcat.out"
	args := []string{"-spartan", testdataFile}

	if _, err := runCommand(t, "../dcat", args, stdoutFile); err != nil {
		t.Error(err)
		return
	}
	if err := compareFiles(t, stdoutFile, testdataFile); err != nil {
		t.Error(err)
		return
	}
	os.Remove(stdoutFile)
}