<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8e228eac058d49bde59bcf440134537cb0d22d07">https://github.com/macports/macports-ports/commit/8e228eac058d49bde59bcf440134537cb0d22d07</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8e228eac058d49bde59bcf440134537cb0d22d07
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Jan 14 21:10:11 2023 -0700

<span style='display:block; white-space:pre;color:#404040;'>    alglib: add tests
</span>---
 math/alglib/Portfile             |  3 +++
 math/alglib/files/CMakeLists.txt | 12 +++++++++---
 2 files changed, 12 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/alglib/Portfile b/math/alglib/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 55800ac46e0..a65f6f8d2ea 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/alglib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/alglib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,3 +31,6 @@ post-extract {
</span> 
 configure.args-append   -DALGLIB_VERSION=${version} \
                         -DALGLIB_VERSION_MAJOR=[lindex [split ${version} .] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run                yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.args-append        DYLD_LIBRARY_PATH=${cmake.build_dir}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/alglib/files/CMakeLists.txt b/math/alglib/files/CMakeLists.txt
</span><span style='display:block; white-space:pre;color:#808080;'>index 50b118831fe..5281416c944 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/alglib/files/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/alglib/files/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,14 +14,14 @@ set_target_properties(alglib PROPERTIES VERSION ${ALGLIB_VERSION} SOVERSION ${AL
</span> 
 add_executable(test_c tests/test_c.cpp)
 add_executable(test_i tests/test_i.cpp)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# add_executable(test_x tests/test_x.cpp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_executable(test_x tests/test_x.cpp)
</span> set_target_properties(test_c PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
 set_target_properties(test_i PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# set_target_properties(test_x PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set_target_properties(test_x PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
</span> include_directories(src/)
 target_link_libraries(test_c alglib)
 target_link_libraries(test_i alglib)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# target_link_libraries(test_x alglib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+target_link_libraries(test_x alglib)
</span> 
 install(TARGETS alglib LIBRARY DESTINATION lib${LIB_SUFFIX})
 install(FILES ${HDR} DESTINATION include/libalglib)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,3 +37,9 @@ install(FILES ${HDR} DESTINATION include/libalglib)
</span> # See https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/alglib/files/CMakeLists.txt-3.8.2
 #
 # Gmsh expects headers in include/libalglib, so use that.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+enable_testing()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_test( test_c ${CMAKE_BUILD_DIR}/test_c)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_test( test_i ${CMAKE_BUILD_DIR}/test_i)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_test( test_x ${CMAKE_BUILD_DIR}/test_x)
</span></pre><pre style='margin:0'>

</pre>