diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 71a5974b8..9d724f379 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${CMAKE_SOURCE_DIR}/src/C-interface) set(SOURCES_TYPED - add_matrix_typed.c + test_bml_add_typed.c adjacency_matrix_typed.c adjungate_triangle_matrix_typed.c allocate_matrix_typed.c @@ -39,7 +39,7 @@ set_target_properties(bmltests POSITION_INDEPENDENT_CODE yes) add_executable(bml-test - add_matrix.c + test_bml_add.c adjacency_matrix.c adjungate_triangle_matrix.c allocate_matrix.c diff --git a/tests/bml_test.c b/tests/bml_test.c index 1fd6866d0..965237b86 100644 --- a/tests/bml_test.c +++ b/tests/bml_test.c @@ -66,7 +66,7 @@ const char *test_description[] = { }; const test_function_t testers[] = { - test_add, + test_bml_add, test_adjacency, test_adjungate_triangle, test_allocate, diff --git a/tests/bml_test.h b/tests/bml_test.h index 05979f778..2d3bef81e 100644 --- a/tests/bml_test.h +++ b/tests/bml_test.h @@ -10,7 +10,6 @@ typedef int ( const bml_matrix_precision_t matrix_precision, const int M); -#include "add_matrix.h" #include "adjacency_matrix.h" #include "adjungate_triangle_matrix.h" #include "allocate_matrix.h" @@ -27,6 +26,7 @@ typedef int ( #include "scale_matrix.h" #include "set_row.h" #include "submatrix_matrix.h" +#include "test_bml_add.h" #include "test_bml_gemm.h" #include "threshold_matrix.h" #include "trace_matrix.h" diff --git a/tests/add_matrix.c b/tests/test_bml_add.c similarity index 65% rename from tests/add_matrix.c rename to tests/test_bml_add.c index 977035c09..f0496feb8 100644 --- a/tests/add_matrix.c +++ b/tests/test_bml_add.c @@ -4,7 +4,7 @@ #include int -test_add( +test_bml_add( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision, @@ -13,17 +13,17 @@ test_add( switch (matrix_precision) { case single_real: - return test_add_single_real(N, matrix_type, matrix_precision, M); + return test_bml_add_single_real(N, matrix_type, matrix_precision, M); break; case double_real: - return test_add_double_real(N, matrix_type, matrix_precision, M); + return test_bml_add_double_real(N, matrix_type, matrix_precision, M); break; case single_complex: - return test_add_single_complex(N, matrix_type, matrix_precision, + return test_bml_add_single_complex(N, matrix_type, matrix_precision, M); break; case double_complex: - return test_add_double_complex(N, matrix_type, matrix_precision, + return test_bml_add_double_complex(N, matrix_type, matrix_precision, M); break; default: diff --git a/tests/add_matrix.h b/tests/test_bml_add.h similarity index 77% rename from tests/add_matrix.h rename to tests/test_bml_add.h index d6bafd4a3..234070ef9 100644 --- a/tests/add_matrix.h +++ b/tests/test_bml_add.h @@ -1,33 +1,33 @@ -#ifndef __ADD_MATRIX_H -#define __ADD_MATRIX_H +#ifndef __TEST_BML_ADD_H +#define __TEST_BML_ADD_H #include -int test_add( +int test_bml_add( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision, const int M); -int test_add_single_real( +int test_bml_add_single_real( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision, const int M); -int test_add_double_real( +int test_bml_add_double_real( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision, const int M); -int test_add_single_complex( +int test_bml_add_single_complex( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision, const int M); -int test_add_double_complex( +int test_bml_add_double_complex( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision, diff --git a/tests/add_matrix_typed.c b/tests/test_bml_add_typed.c similarity index 99% rename from tests/add_matrix_typed.c rename to tests/test_bml_add_typed.c index c5dd31ff8..2a301bb37 100644 --- a/tests/add_matrix_typed.c +++ b/tests/test_bml_add_typed.c @@ -12,7 +12,7 @@ #endif int TYPED_FUNC( - test_add) ( + test_bml_add) ( const int N, const bml_matrix_type_t matrix_type, const bml_matrix_precision_t matrix_precision,