|
|
|
@@ -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 |