tests/thirdparty: add klauspost/compress/s2 (#131)
Adds @klauspost's S2 implementation to the third party test suite. The full klauspost/compress tests are slow but we only care about the S2 sub-package. Therefore this PR also adds the option to only run a subset of the package tests, controlled by a "test" parameter in the JSON configuration. Closes #130
This commit is contained in:
committed by
GitHub
parent
e089a6c93c
commit
d51141dc8f
12
tests/thirdparty/config_test.go
vendored
12
tests/thirdparty/config_test.go
vendored
@@ -19,6 +19,18 @@ func TestPackageCloneURL(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestPackagesTestPath(t *testing.T) {
|
||||
p := Package{}
|
||||
if p.TestPath() != "./..." {
|
||||
t.Fail()
|
||||
}
|
||||
|
||||
p.Test = "./sub"
|
||||
if p.TestPath() != "./sub" {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadPackages(t *testing.T) {
|
||||
r := strings.NewReader(`[{"unknown_field": "value"}]`)
|
||||
_, err := LoadPackages(r)
|
||||
|
||||
Reference in New Issue
Block a user