. "$BST_LIB" # uthash is a header-only C macro library -- the recipe compiles nothing # (do_compile[noexec]) and its main package is empty, so the shipped payload is # the -dev headers under /usr/include. There is no on-target C compiler to # exercise the macros, so the on-target check is that every header the recipe # installs is present and carries its real uthash content (the UT*_VERSION guard # and a defining API macro), not an empty placeholder or a wrong file. # Every src/*.h the recipe installs is present under the include dir. for h in uthash utlist utarray utstring utringbuffer utstack; do check "uthash/$h-present" test -f "/usr/include/$h.h" done # The headers carry their real uthash version guard (2.3.0), not a stub. check_out uthash/uthash-version "UTHASH_VERSION 2.3.0" cat /usr/include/uthash.h check_out uthash/utlist-version "UTLIST_VERSION 2.3.0" cat /usr/include/utlist.h check_out uthash/utarray-version "UTARRAY_VERSION 2.3.0" cat /usr/include/utarray.h check_out uthash/utstring-version "UTSTRING_VERSION 2.3.0" cat /usr/include/utstring.h # A defining API macro from the hash-table and linked-list headers proves these # are the macro library, not truncated files. check_out uthash/hash-add-macro "define HASH_ADD" cat /usr/include/uthash.h check_out uthash/ll-append-macro "define LL_APPEND" cat /usr/include/utlist.h