lapack/native,stat: skip noasm-failing tests

This commit is contained in:
kortschak
2017-05-26 13:35:19 +09:30
parent e1b11c54bb
commit ced0e4b7d5
4 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
// Copyright ©2017 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build noasm appengine
package native
func init() { appengine = true }

View File

@@ -10,6 +10,8 @@ import (
"gonum.org/v1/gonum/lapack/testlapack" "gonum.org/v1/gonum/lapack/testlapack"
) )
var appengine bool
var impl = Implementation{} var impl = Implementation{}
func TestDbdsqr(t *testing.T) { func TestDbdsqr(t *testing.T) {
@@ -33,6 +35,9 @@ func TestDgebd2(t *testing.T) {
} }
func TestDgebrd(t *testing.T) { func TestDgebrd(t *testing.T) {
if appengine {
t.Skip("non-asm implementation fails test")
}
testlapack.DgebrdTest(t, impl) testlapack.DgebrdTest(t, impl)
} }
@@ -41,6 +46,9 @@ func TestDgecon(t *testing.T) {
} }
func TestDgeev(t *testing.T) { func TestDgeev(t *testing.T) {
if appengine {
t.Skip("non-asm implementation fails test")
}
testlapack.DgeevTest(t, impl) testlapack.DgeevTest(t, impl)
} }

9
stat/appengine_test.go Normal file
View File

@@ -0,0 +1,9 @@
// Copyright ©2017 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build noasm appengine
package stat
func init() { appengine = true }

View File

@@ -11,7 +11,12 @@ import (
"gonum.org/v1/gonum/matrix/mat64" "gonum.org/v1/gonum/matrix/mat64"
) )
var appengine bool
func TestPrincipalComponents(t *testing.T) { func TestPrincipalComponents(t *testing.T) {
if appengine {
t.Skip("non-asm implementation fails test")
}
tests: tests:
for i, test := range []struct { for i, test := range []struct {
data mat64.Matrix data mat64.Matrix