Skip to content

Commit

Permalink
add zeromq tests
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Wolf <[email protected]>
  • Loading branch information
joshrwolf committed Apr 10, 2024
1 parent 1a1133a commit 3c81f4c
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion zeromq.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Generated from https://git.alpinelinux.org/aports/plain/main/zeromq/APKBUILD
package:
name: zeromq
version: 4.3.5
Expand Down Expand Up @@ -55,6 +54,35 @@ subpackages:
runtime:
- zeromq
description: zeromq dev
test:
environment:
contents:
packages:
- gcc
- glibc-dev
- zeromq-dev
- pkgconf
- libsodium-dev
pipeline:
- runs: |
cat << 'EOF' > test_zeromq.c
#include <assert.h>
#include <zmq.h>
int main()
{
zmq_msg_t query;
assert(0 == zmq_msg_init_size(&query, 1));
return 0;
}
EOF
gcc -o test_zeromq test_zeromq.c -lzmq
./test_zeromq
- runs: |
# Ensure pkg-config can find libzmq
pkg-config libzmq --cflags
pkg-config libzmq --libs
- name: zeromq-doc
pipeline:
Expand Down

0 comments on commit 3c81f4c

Please sign in to comment.