

set -ex



test -f ${PREFIX}/lib/libprotoc.dylib
test ! -f ${PREFIX}/lib/libprotoc.a
test -f ${PREFIX}/lib/libprotobuf.dylib
test ! -f ${PREFIX}/lib/libprotobuf.a
test -f ${PREFIX}/lib/libprotobuf-lite.dylib
test ! -f ${PREFIX}/lib/libprotobuf-lite.a
test -f ${PREFIX}/lib/cmake/protobuf/protobuf-config.cmake
pkg-config --print-errors --exact-version "25.3.0" protobuf
pkg-config --print-errors --exact-version "25.3.0" protobuf-lite
protoc --help
cd cmake_test
cmake -GNinja $CMAKE_ARGS .
cmake --build .
exit 0
