Browse Source

TST,BLD: Add basic netlib blas tests

pull/4820/head
Rohit Goswami 2 years ago
parent
commit
ae7686c33f
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
2 changed files with 52 additions and 0 deletions
  1. +47
    -0
      lapack-netlib/BLAS/TESTING/meson.build
  2. +5
    -0
      lapack-netlib/BLAS/meson.build

+ 47
- 0
lapack-netlib/BLAS/TESTING/meson.build View File

@@ -0,0 +1,47 @@
# TODO: Only Level 1 BLAS tests pass for now, the others need input files, see
# Makefile for more information
_blas_test_array = [#
# ['Pretty name', 'binary_name', 'BlahTest.cpp']
]

if prec == 's' or build_single or build_all_prec
_blas_test_array += [
['Test REAL Level 1 BLAS', 'xblat1s', 'sblat1.f'],
# ['Test REAL Level 2 BLAS', 'xblat2s', 'sblat2.f'],
# ['Test REAL Level 3 BLAS', 'xblat3s', 'sblat3.f'],
]
endif

if prec == 'd' or build_double or build_all_prec
_blas_test_array += [
['Test DOUBLE PRECISION Level 1 BLAS', 'xblat1d', 'dblat1.f'],
# ['Test DOUBLE PRECISION Level 2 BLAS', 'xblat2d', 'dblat2.f'],
# ['Test DOUBLE PRECISION Level 3 BLAS', 'xblat3d', 'dblat3.f'],
]
endif


if build_complex or build_all_prec
_blas_test_array += [
['Test COMPLEX Level 1 BLAS', 'xblat1c', 'cblat1.f'],
# ['Test COMPLEX Level 2 BLAS', 'xblat2c', 'cblat2.f'],
# ['Test COMPLEX Level 3 BLAS', 'xblat3c', 'cblat3.f'],
]
endif

if build_complex16 or build_all_prec
_blas_test_array += [
['Test COMPLEX*16 Level 1 BLAS', 'xblat1z', 'zblat1.f'],
# ['Test COMPLEX*16 Level 2 BLAS', 'xblat2z', 'zblat2.f'],
# ['Test COMPLEX*16 Level 3 BLAS', 'xblat3z', 'zblat3.f'],
]
endif

foreach _test : _blas_test_array
test(_test.get(0),
executable(_test.get(1),
sources : [_test.get(2)],
link_with : blas,
),
)
endforeach

+ 5
- 0
lapack-netlib/BLAS/meson.build View File

@@ -5,3 +5,8 @@ _netlib_tmglib_name = get_option('netlib_tmglib_name')
_netlib_lapacke_name = get_option('netlib_lapacke_name')

subdir('SRC')

build_testing = get_option('build_testing')
if build_testing
subdir('TESTING')
endif

Loading…
Cancel
Save