From ced0e4b7d5c76400a0bab2e1c91660ea96514e03 Mon Sep 17 00:00:00 2001 From: kortschak Date: Fri, 26 May 2017 13:35:19 +0930 Subject: [PATCH] lapack/native,stat: skip noasm-failing tests --- lapack/native/appengine_test.go | 9 +++++++++ lapack/native/lapack_test.go | 8 ++++++++ stat/appengine_test.go | 9 +++++++++ stat/pca_test.go | 5 +++++ 4 files changed, 31 insertions(+) create mode 100644 lapack/native/appengine_test.go create mode 100644 stat/appengine_test.go diff --git a/lapack/native/appengine_test.go b/lapack/native/appengine_test.go new file mode 100644 index 00000000..c3900e35 --- /dev/null +++ b/lapack/native/appengine_test.go @@ -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 } diff --git a/lapack/native/lapack_test.go b/lapack/native/lapack_test.go index 46f1af71..827efdfd 100644 --- a/lapack/native/lapack_test.go +++ b/lapack/native/lapack_test.go @@ -10,6 +10,8 @@ import ( "gonum.org/v1/gonum/lapack/testlapack" ) +var appengine bool + var impl = Implementation{} func TestDbdsqr(t *testing.T) { @@ -33,6 +35,9 @@ func TestDgebd2(t *testing.T) { } func TestDgebrd(t *testing.T) { + if appengine { + t.Skip("non-asm implementation fails test") + } testlapack.DgebrdTest(t, impl) } @@ -41,6 +46,9 @@ func TestDgecon(t *testing.T) { } func TestDgeev(t *testing.T) { + if appengine { + t.Skip("non-asm implementation fails test") + } testlapack.DgeevTest(t, impl) } diff --git a/stat/appengine_test.go b/stat/appengine_test.go new file mode 100644 index 00000000..bb2b93c7 --- /dev/null +++ b/stat/appengine_test.go @@ -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 } diff --git a/stat/pca_test.go b/stat/pca_test.go index f54985f6..e6b986ad 100644 --- a/stat/pca_test.go +++ b/stat/pca_test.go @@ -11,7 +11,12 @@ import ( "gonum.org/v1/gonum/matrix/mat64" ) +var appengine bool + func TestPrincipalComponents(t *testing.T) { + if appengine { + t.Skip("non-asm implementation fails test") + } tests: for i, test := range []struct { data mat64.Matrix