fix keyboard tests and exclude opencv
This commit is contained in:
parent
5977c05f6c
commit
27b9e04e7e
11
Makefile
11
Makefile
|
@ -1,14 +1,15 @@
|
|||
.PHONY: test race cover robeaux examples test_with_coverage fmt_check
|
||||
|
||||
excluding_vendor := $(shell go list ./... | grep -v /vendor/)
|
||||
# opencv platform currently skipped to prevent install of preconditions
|
||||
including_except := $(shell go list ./... | grep -v platforms/opencv)
|
||||
|
||||
# Run tests on all non-vendor directories
|
||||
# Run tests on nearly all directories
|
||||
test:
|
||||
go test -v $(excluding_vendor)
|
||||
go test -v $(including_except)
|
||||
|
||||
# Run tests with race detection on all non-vendor directories
|
||||
# Run tests with race detection
|
||||
race:
|
||||
go test -race $(excluding_vendor)
|
||||
go test -race $(including_except)
|
||||
|
||||
# Check for code well-formedness
|
||||
fmt_check:
|
||||
|
|
|
@ -15,23 +15,23 @@ func TestParseEscape(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestParseHyphen(t *testing.T) {
|
||||
gobottest.Assert(t, Parse(bytes{45, 0, 0}).Key, Escape)
|
||||
gobottest.Assert(t, Parse(bytes{45, 0, 0}).Key, Hyphen)
|
||||
}
|
||||
|
||||
func TestParseAsterisk(t *testing.T) {
|
||||
gobottest.Assert(t, Parse(bytes{42, 0, 0}).Key, Escape)
|
||||
gobottest.Assert(t, Parse(bytes{42, 0, 0}).Key, Asterisk)
|
||||
}
|
||||
|
||||
func TestParsePlus(t *testing.T) {
|
||||
gobottest.Assert(t, Parse(bytes{43, 0, 0}).Key, Escape)
|
||||
gobottest.Assert(t, Parse(bytes{43, 0, 0}).Key, Plus)
|
||||
}
|
||||
|
||||
func TestParseSlash(t *testing.T) {
|
||||
gobottest.Assert(t, Parse(bytes{47, 0, 0}).Key, Escape)
|
||||
gobottest.Assert(t, Parse(bytes{47, 0, 0}).Key, Slash)
|
||||
}
|
||||
|
||||
func TestParseDot(t *testing.T) {
|
||||
gobottest.Assert(t, Parse(bytes{46, 0, 0}).Key, Escape)
|
||||
gobottest.Assert(t, Parse(bytes{46, 0, 0}).Key, Dot)
|
||||
}
|
||||
|
||||
func TestParseNotEscape(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue