if(USE_GPU_MOD AND ${FILE} MATCHES test_TH_pack_factors|test_TransformHelper_variadic_template_ctor|faust_transform_optimize|test_TransformHelper_and_Transform_fac_iterato|faust_mult2|faust_transform_omp_mul|test_Transform_move|test_TransformHelper_and_Transform_copy_ctor AND ${TEST_FPP} MATCHES float)# gpu_mod handles float but not FaustGPU
if(USE_GPU_MOD AND ${FILE} MATCHES test_TH_pack_factors|test_TransformHelper_variadic_template_ctor|faust_transform_optimize|test_TransformHelper_and_Transform_fac_iterato|faust_mult2|faust_transform_omp_mul|test_Transform_move|test_TransformHelper_and_Transform_copy_ctor AND ${TEST_FPP} MATCHES float)# gpu_mod handles float but not FaustGPU
if((${TEST_FPP} MATCHES ^float$ OR ${TEST_FPP} MATCHES ^double$ OR ${TEST_FPP} MATCHES complex<float>) AND ${testin} MATCHES faust_butterfly_transform)
# this test is written only for complex<double>
continue()
endif()
if(USE_GPU_MOD AND(${testin} MATCHES gpu|hierarchical2020Hadamard|palm4msa_2020|hierarchical2020|hierarchicalFactorizationHadamard|MEG_factorization) AND ${TEST_FPP} MATCHES float )# gpu_mod handles float but not FaustGPU
if((${TEST_FPP} MATCHES ^float$ OR ${TEST_FPP} MATCHES ^double$ OR ${TEST_FPP} MATCHES complex<float>) AND ${testin} MATCHES faust_butterfly_transform)
if(USE_GPU_MOD AND(${testin} MATCHES gpu|hierarchical2020Hadamard|palm4msa_2020|hierarchical2020|hierarchicalFactorizationHadamard|MEG_factorization) AND ${TEST_FPP} MATCHES float )# gpu_mod handles float but not FaustGPU
add_test(NAME PYTHON${PY_VER}_FAUST_UNIT_TESTS COMMAND ${PYTHON_EXE}${FAUST_SRC_TEST_SRC_PYTHON_DIR}/test_FaustPy.py ${FAUST_PYTHON_BIN_DIR})# second arg. is the FaustPy's dir. to add to PYTHONPATH
add_test(NAME PYTHON${PY_VER}_FAUST_UPDATE_CHOL COMMAND ${PYTHON_EXE}${FAUST_SRC_TEST_SRC_PYTHON_DIR}/test_update_cholesky.py ${FAUST_PYTHON_BIN_DIR})# second arg. is the FaustPy's dir. to add to PYTHONPATH
endif(PYTHON_MODULE_SCIPY)
set(PY_VERS 2;3)
endif()
endforeach()
endif(BUILD_WRAPPER_PYTHON)
foreach(PY_VER IN LISTS PY_VERS)
if(NOPY2)
# there is only py3 to test on
set(PY_INDEX 0)
else()
# get the index in PYTHON_EXES for the version of python ${PY_VER}
add_test(NAME PYTHON${PY_VER}_FAUST_UNIT_TESTS COMMAND ${PYTHON_EXE}${FAUST_SRC_TEST_SRC_PYTHON_DIR}/test_FaustPy.py ${FAUST_PYTHON_BIN_DIR})# second arg. is the FaustPy's dir. to add to PYTHONPATH
add_test(NAME PYTHON${PY_VER}_FAUST_UPDATE_CHOL COMMAND ${PYTHON_EXE}${FAUST_SRC_TEST_SRC_PYTHON_DIR}/test_update_cholesky.py ${FAUST_PYTHON_BIN_DIR})# second arg. is the FaustPy's dir. to add to PYTHONPATH