Skip to content

Commit d494eb9

Browse files
authored
Merge pull request #18 from cisco-ie/test-fix
Test Fixes
2 parents 5a42b7e + af33839 commit d494eb9

4 files changed

Lines changed: 20 additions & 5 deletions

File tree

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,13 @@
1616
# vendor/
1717

1818
## Custom
19-
.DS_Store
19+
.DS_Store
20+
21+
## Test-related (should be fixed)
22+
dump.bin
23+
dump.txt
24+
dump1.txt
25+
dumpfiltererd.txt
26+
mdt_msg_samples/hexdump.bin
27+
models.txt
28+
pipeline.log

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BINARY=pipeline
44
include skeleton/pipeline.mk
55

66
# Setup pretest as a prerequisite of tests.
7-
test: pretest
8-
pretest:
9-
@echo Setting up zookeeper, kafka. Docker required.
7+
testall: pretestinfra
8+
pretestinfra:
9+
@echo Setting up Zookeeper and Kafka. Docker required.
1010
tools/test/run.sh

skeleton/pipeline.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ bin/$(BINARY): $(SOURCES)
3838
generated_source:
3939
go generate -x
4040

41+
.PHONY: testall
42+
testall:
43+
go test -v -tags=integration -run=. -bench=. $(PROFILE)
44+
4145
.PHONY: test
4246
test:
4347
go test -v -run=. -bench=. $(PROFILE)

xport_kafka_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
// All rights reserved.
66
//
77
//
8+
// +build integration
89

910
package main
1011

1112
import (
1213
"encoding/json"
1314
"fmt"
14-
"github.com/dlintw/goconf"
1515
"strings"
1616
"testing"
1717
"time"
18+
19+
"github.com/dlintw/goconf"
1820
)
1921

2022
var kmod kafkaOutputModule

0 commit comments

Comments
 (0)