File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
c89stringutils_tests/test_c89stringutils Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2424 prepare : pkg install cmake
2525 run : |
2626 mkdir build && cd build
27+ mkdir c89stringutils_tests/test_downloads
28+ /opt/ooce/bin/wget https://raw.githubusercontent.com/silentbicycle/greatest/11a6af1/greatest.h -o c89stringutils_tests/test_downloads/greatest.h
2729 /opt/ooce/bin/cmake -DCMAKE_BUILD_TYPE="Debug" ..
2830 /opt/ooce/bin/cmake --build .
2931 /opt/ooce/bin/ctest -C Debug .
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if (APPLE)
5555 set (CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR} /cmake/Info.plist" )
5656 set (CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR} /cmake/Info.plist" )
5757 set (CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR} /cmake/CustomVolumeIcon.icns" )
58- endif ( )
58+ endif ( APPLE )
5959set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR} /cmake/LICENSE.txt" )
6060set (CPACK_PACKAGE_VERSION_MAJOR "${${PROJECT_NAME} _VERSION_MAJOR}" )
6161set (CPACK_PACKAGE_VERSION_MINOR "${${PROJECT_NAME} _VERSION_MINOR}" )
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ set(DOWNLOAD_DIR "${PROJECT_BINARY_DIR}/test_downloads")
99file (MAKE_DIRECTORY "${DOWNLOAD_DIR} " )
1010
1111set (GREATEST_SHA256 "1292593d95c35eeccc89ffa1c91d6fe53b49f81cbf2c2b7758842b7f3186fcc2" )
12- file (DOWNLOAD "https://raw.githubusercontent.com/silentbicycle/greatest/11a6af1/greatest.h"
13- "${DOWNLOAD_DIR} /greatest.h" )
1412if (NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
13+ file (DOWNLOAD "https://raw.githubusercontent.com/silentbicycle/greatest/11a6af1/greatest.h"
14+ "${DOWNLOAD_DIR} /greatest.h" )
1515 file (SHA256 "${DOWNLOAD_DIR} /greatest.h" GREATEST_SHA256_FOUND)
1616 if (NOT GREATEST_SHA256_FOUND STREQUAL GREATEST_SHA256)
1717 message (FATAL_ERROR "Hashes don't match on \" ${DOWNLOAD_DIR} /greatest.h\" download" )
1818 endif (NOT GREATEST_SHA256_FOUND STREQUAL GREATEST_SHA256)
19- endif (CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
19+ endif (NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
2020
2121#########
2222# Tests #
You can’t perform that action at this time.
0 commit comments