Skip to content

Commit

Permalink
Improve hdf, hdf5, libhiredis and libmodulemd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 14, 2023
1 parent 1d92ca0 commit b49ff44
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 121 deletions.
11 changes: 8 additions & 3 deletions tests/hdf.recipe
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bibop recipe for hdf
# Bibop recipe for HDF
# See more: https://kaos.sh/bibop

pkg hdf hdf-devel
Expand All @@ -7,8 +7,6 @@ fast-finish yes

command "-" "Check apps"
app gif2hdf
app h4cc
app h4fc
app h4redeploy
app hdf24to8
app hdf2gif
Expand All @@ -34,5 +32,12 @@ command "-" "Check apps"
app vmake
app vshow

command "-" "Check apps from devel"
app h4cc

command "-" "Check shared libs"
lib-loaded libdf.so.*
lib-loaded libmfhdf.so.*

command "-" "Check headers"
lib-header hdf
20 changes: 10 additions & 10 deletions tests/hdf5.recipe
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Bibop recipe for hdf5
# Bibop recipe for HDF 5
# See more: https://kaos.sh/bibop

pkg hdf5 hdf5-devel hdf5-static

fast-finish yes

command "-" "Check apps"
app gif2h5
app h52gif
app h5c++
app h5c++-64
app h5cc
app h5cc-64
app h5clear
app h5copy
app h5debug
app h5diff
app h5dump
app h5fc
app h5fc-64
app h5format_convert
app h5import
app h5jam
app h5ls
app h5mkgrp
app h5perf_serial
app h5redeploy
app h5repack
app h5repart
app h5stat
app h5unjam
app h5watch

command "-" "Check devel apps"
app h5c++
app h5c++-64
app h5cc
app h5cc-64
app h5fc
app h5fc-64
app h5redeploy

command "-" "Check shared libs"
lib-loaded libhdf5.so.*
lib-loaded libhdf5_cpp.so.*
Expand Down
106 changes: 1 addition & 105 deletions tests/libhiredis/libhiredis.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -8,118 +8,14 @@ fast-finish yes
var lib_name hiredis

command "-" "Check shared libs"
lib-loaded libhiredis.so.0.*
lib-loaded libhiredis.so.1.*

command "-" "Check headers"
lib-header {lib_name}

command "-" "Check pkg-config"
lib-config {lib_name}

command "-" "Check symbols exported by libhiredis.so"
lib-exported libhiredis.so.0 freeReplyObject
lib-exported libhiredis.so.0 hex_digit_to_int
lib-exported libhiredis.so.0 is_hex_digit
lib-exported libhiredis.so.0 redisAppendCommand
lib-exported libhiredis.so.0 redisAppendCommandArgv
lib-exported libhiredis.so.0 redisAppendFormattedCommand
lib-exported libhiredis.so.0 redisAsyncCommand
lib-exported libhiredis.so.0 redisAsyncCommandArgv
lib-exported libhiredis.so.0 redisAsyncConnect
lib-exported libhiredis.so.0 redisAsyncConnectBind
lib-exported libhiredis.so.0 redisAsyncConnectBindWithReuse
lib-exported libhiredis.so.0 redisAsyncConnectUnix
lib-exported libhiredis.so.0 redisAsyncDisconnect
lib-exported libhiredis.so.0 redisAsyncFormattedCommand
lib-exported libhiredis.so.0 redisAsyncFree
lib-exported libhiredis.so.0 redisAsyncHandleRead
lib-exported libhiredis.so.0 redisAsyncHandleWrite
lib-exported libhiredis.so.0 redisAsyncSetConnectCallback
lib-exported libhiredis.so.0 redisAsyncSetDisconnectCallback
lib-exported libhiredis.so.0 redisBufferRead
lib-exported libhiredis.so.0 redisBufferWrite
lib-exported libhiredis.so.0 redisCheckSocketError
lib-exported libhiredis.so.0 redisCommand
lib-exported libhiredis.so.0 redisCommandArgv
lib-exported libhiredis.so.0 redisConnect
lib-exported libhiredis.so.0 redisConnectBindNonBlock
lib-exported libhiredis.so.0 redisConnectBindNonBlockWithReuse
lib-exported libhiredis.so.0 redisConnectFd
lib-exported libhiredis.so.0 redisConnectNonBlock
lib-exported libhiredis.so.0 redisConnectUnix
lib-exported libhiredis.so.0 redisConnectUnixNonBlock
lib-exported libhiredis.so.0 redisConnectUnixWithTimeout
lib-exported libhiredis.so.0 redisConnectWithTimeout
lib-exported libhiredis.so.0 redisContextConnectBindTcp
lib-exported libhiredis.so.0 redisContextConnectTcp
lib-exported libhiredis.so.0 redisContextConnectUnix
lib-exported libhiredis.so.0 redisContextSetTimeout
lib-exported libhiredis.so.0 redisEnableKeepAlive
lib-exported libhiredis.so.0 redisFormatCommand
lib-exported libhiredis.so.0 redisFormatCommandArgv
lib-exported libhiredis.so.0 redisFormatSdsCommandArgv
lib-exported libhiredis.so.0 redisFree
lib-exported libhiredis.so.0 redisFreeCommand
lib-exported libhiredis.so.0 redisFreeKeepFd
lib-exported libhiredis.so.0 redisFreeSdsCommand
lib-exported libhiredis.so.0 redisGetReply
lib-exported libhiredis.so.0 redisGetReplyFromReader
lib-exported libhiredis.so.0 redisKeepAlive
lib-exported libhiredis.so.0 redisProcessCallbacks
lib-exported libhiredis.so.0 redisReaderCreate
lib-exported libhiredis.so.0 redisReaderCreateWithFunctions
lib-exported libhiredis.so.0 redisReaderFeed
lib-exported libhiredis.so.0 redisReaderFree
lib-exported libhiredis.so.0 redisReaderGetReply
lib-exported libhiredis.so.0 redisReconnect
lib-exported libhiredis.so.0 redisSetTimeout
lib-exported libhiredis.so.0 redisvAppendCommand
lib-exported libhiredis.so.0 redisvAsyncCommand
lib-exported libhiredis.so.0 redisvCommand
lib-exported libhiredis.so.0 redisvFormatCommand
lib-exported libhiredis.so.0 sdsAllocPtr
lib-exported libhiredis.so.0 sdsAllocSize
lib-exported libhiredis.so.0 sdscat
lib-exported libhiredis.so.0 sdscatfmt
lib-exported libhiredis.so.0 sdscatlen
lib-exported libhiredis.so.0 sdscatprintf
lib-exported libhiredis.so.0 sdscatrepr
lib-exported libhiredis.so.0 sdscatsds
lib-exported libhiredis.so.0 sdscatvprintf
lib-exported libhiredis.so.0 sdsclear
lib-exported libhiredis.so.0 sdscmp
lib-exported libhiredis.so.0 sdscpy
lib-exported libhiredis.so.0 sdscpylen
lib-exported libhiredis.so.0 sdsdup
lib-exported libhiredis.so.0 sdsempty
lib-exported libhiredis.so.0 sdsfree
lib-exported libhiredis.so.0 sds_free
lib-exported libhiredis.so.0 sdsfreesplitres
lib-exported libhiredis.so.0 sdsfromlonglong
lib-exported libhiredis.so.0 sdsgrowzero
lib-exported libhiredis.so.0 sdsIncrLen
lib-exported libhiredis.so.0 sdsjoin
lib-exported libhiredis.so.0 sdsjoinsds
lib-exported libhiredis.so.0 sdsll2str
lib-exported libhiredis.so.0 sdsMakeRoomFor
lib-exported libhiredis.so.0 sds_malloc
lib-exported libhiredis.so.0 sdsmapchars
lib-exported libhiredis.so.0 sdsnew
lib-exported libhiredis.so.0 sdsnewlen
lib-exported libhiredis.so.0 sdsrange
lib-exported libhiredis.so.0 sds_realloc
lib-exported libhiredis.so.0 sdsRemoveFreeSpace
lib-exported libhiredis.so.0 sdssplitargs
lib-exported libhiredis.so.0 sdssplitlen
lib-exported libhiredis.so.0 sdstolower
lib-exported libhiredis.so.0 sdstoupper
lib-exported libhiredis.so.0 sdstrim
lib-exported libhiredis.so.0 sdsull2str
lib-exported libhiredis.so.0 sdsupdatelen

command "./test_{ARCH_BITS}" "Check prebuilt binary"
exit 0

command "gcc -o test_bin -l {lib_name} test.c" "Compile binary"
exit 0
exist test_bin
Expand Down
3 changes: 0 additions & 3 deletions tests/libmodulemd/libmodulemd.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ command "-" "Check headers"
command "-" "Check pkg-config"
lib-config {lib_name}

command "-" "Check docs"
dir /usr/share/gtk-doc/html/{lib_name}

command "gcc -o test_bin {lib_linking_flags} test.c" "Compile binary"
exit 0
exist test_bin
Expand Down

0 comments on commit b49ff44

Please sign in to comment.