2424
2525outputs :
2626 - name : libarchive
27- script : build_libarchive.sh # [unix]
27+ script : build_libarchive.sh # [unix]
2828 script : build_libarchive.bat # [win]
2929
3030 build :
@@ -94,9 +94,8 @@ outputs:
9494 - cmake --build build --target test
9595
9696 - name : libarchive-minimal-static
97- script : build_minimal.sh
98- build :
99- skip : true # [win]
97+ script : build_minimal.sh # [unix]
98+ script : build_minimal.bat # [win]
10099 requirements :
101100 build :
102101 - {{ compiler('c') }}
@@ -105,23 +104,40 @@ outputs:
105104 - libtool # [unix]
106105 - pkg-config # [unix]
107106 - make # [unix]
107+ - cmake # [win]
108+ - ninja # [win]
108109 host :
109110 - libiconv # [osx]
110111 - bzip2
111112 - zlib
112113 - zstd
113114
114115 test :
116+ requires :
117+ - {{ compiler('c') }}
118+ - cmake
119+ - ninja
120+ files :
121+ - test/*
115122 commands :
116123 # Verify pkg-config file is in place.
117124 - test -f "${PREFIX}/lib/pkgconfig/libarchive.pc" # [unix]
118125
119126 # Verify headers are in place.
120- - test -f "${PREFIX}/include/archive.h" # [unix]
121- - test -f "${PREFIX}/include/archive_entry.h" # [unix]
127+ - test -f "${PREFIX}/include/archive.h" # [unix]
128+ - if not exist %LIBRARY_INC%\archive.h (exit 1) # [win]
129+ - test -f "${PREFIX}/include/archive_entry.h" # [unix]
130+ - if not exist %LIBRARY_INC%\archive_entry.h (exit 1) # [win]
122131
123132 # Verify libraries are in place.
124- - test -f "${PREFIX}/lib/libarchive.a" # [unix]
133+ - test -f "${PREFIX}/lib/libarchive.a" # [unix]
134+ - if not exist %LIBRARY_LIB%\archive_static.lib (exit 1) # [win]
135+
136+ # Running a test trying to link to the library
137+ - cmake -G Ninja -S test/ -B build/ -D LIB_NAME="libarchive.a" ${CMAKE_ARGS} # [unix]
138+ - cmake -G Ninja -S test/ -B build/ -D LIB_NAME="archive_static" %CMAKE_ARGS% # [win]
139+ - cmake --build build/
140+ - cmake --build build --target test
125141
126142about :
127143 home : http://www.libarchive.org/
0 commit comments