Skip to content

Commit

Permalink
Enable integration tests on Mac systems
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcran committed Nov 6, 2023
1 parent 337a42c commit 0f3a2f5
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 7 deletions.
8 changes: 7 additions & 1 deletion tests/scripts/test_CMaizePrivateDepend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ build_and_install $PACKAGE ${log_dir} $TOOLCHAIN $WORKSPACE/install \
# Verify that the installation was successful
echo "Verifying package installation..."

version="1.0.0"
libext="so.$version"
if [[ "`uname`" == 'Darwin' ]]; then
libext=$version.dylib
fi

check_dir_exists "install/include/cmaize_private_depend"
check_file_exists "install/include/cmaize_private_depend/cmaize_private_depend.hpp"
check_dir_exists "install/lib/$PACKAGE"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.so.1.0.0"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.$libext"
check_dir_exists "install/lib/$PACKAGE/cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}Config.cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}ConfigVersion.cmake"
8 changes: 7 additions & 1 deletion tests/scripts/test_CMaizePrivateDepend2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,16 @@ build_and_install $PACKAGE ${log_dir} $TOOLCHAIN $WORKSPACE/install \
# Verify that the installation was successful
echo "Verifying package installation..."

version="1.0.0"
libext="so.$version"
if [[ "`uname`" == 'Darwin' ]]; then
libext=$version.dylib
fi

check_dir_exists "install/include/cmaize_private_depend_2"
check_file_exists "install/include/cmaize_private_depend_2/cmaize_private_depend_2.hpp"
check_dir_exists "install/lib/$PACKAGE"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.so.1.0.0"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.$libext"
check_dir_exists "install/lib/$PACKAGE/cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}Config.cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}ConfigVersion.cmake"
8 changes: 7 additions & 1 deletion tests/scripts/test_CMaizePublicDepend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ build_and_install $PACKAGE ${log_dir} $TOOLCHAIN $WORKSPACE/install \
# Verify that the installation was successful
echo "Verifying package installation..."

version="1.0.0"
libext="so.$version"
if [[ "`uname`" == 'Darwin' ]]; then
libext=$version.dylib
fi

check_dir_exists "install/include/cmaize_public_depend"
check_file_exists "install/include/cmaize_public_depend/cmaize_public_depend.hpp"
check_dir_exists "install/lib/$PACKAGE"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.so.1.0.0"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.$libext"
check_dir_exists "install/lib/$PACKAGE/cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}Config.cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}ConfigVersion.cmake"
8 changes: 7 additions & 1 deletion tests/scripts/test_CMaizePublicDepend2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ build_and_install $PACKAGE ${log_dir} $TOOLCHAIN $WORKSPACE/install \
# Verify that the installation was successful
echo "Verifying package installation..."

version="1.0.0"
libext="so.$version"
if [[ "`uname`" == 'Darwin' ]]; then
libext=$version.dylib
fi

check_dir_exists "install/include/cmaize_public_depend_2"
check_file_exists "install/include/cmaize_public_depend_2/cmaize_public_depend_2.hpp"
check_dir_exists "install/lib/$PACKAGE"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.so.1.0.0"
check_file_exists "install/lib/$PACKAGE/lib${PACKAGE}.$libext"
check_dir_exists "install/lib/$PACKAGE/cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}Config.cmake"
check_file_exists "install/lib/$PACKAGE/cmake/${PACKAGE}ConfigVersion.cmake"
7 changes: 6 additions & 1 deletion tests/scripts/test_CMakePrivate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ build_and_install $PACKAGE ${log_dir} $TOOLCHAIN $WORKSPACE/install \
# Verify that the installation was successful
echo "Verifying package installation..."

libext="so"
if [[ "`uname`" == 'Darwin' ]]; then
libext=dylib
fi

check_dir_exists "install/include/cmake_private"
check_file_exists "install/include/cmake_private/cmake_private.hpp"
check_dir_exists "install/lib/cmakeprivate"
check_file_exists "install/lib/cmakeprivate/libCMakePrivate.so"
check_file_exists "install/lib/cmakeprivate/libCMakePrivate.$libext"
check_dir_exists "install/lib/cmakeprivate/cmake"
check_file_exists "install/lib/cmakeprivate/cmake/${PACKAGE}Config.cmake"
9 changes: 7 additions & 2 deletions tests/scripts/test_CMakePublic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,16 @@ build_and_install $PACKAGE ${log_dir} $TOOLCHAIN $WORKSPACE/install \
# Verify that the installation was successful
echo "Verifying package installation..."

libext="so"
if [[ "`uname`" == 'Darwin' ]]; then
libext=dylib
fi

check_dir_exists "install/include/cmake_public"
check_file_exists "install/include/cmake_public/cmake_public.hpp"
check_dir_exists "install/lib/CMakePublic"
check_file_exists "install/lib/CMakePublic/libhello.so"
check_file_exists "install/lib/CMakePublic/libworld.so"
check_file_exists "install/lib/CMakePublic/libhello.$libext"
check_file_exists "install/lib/CMakePublic/libworld.$libext"
check_dir_exists "install/lib/CMakePublic/cmake"
check_file_exists "install/lib/CMakePublic/cmake/${PACKAGE}Config.cmake"
check_file_exists "install/lib/CMakePublic/cmake/helloConfig.cmake"
Expand Down

0 comments on commit 0f3a2f5

Please sign in to comment.