From 428641dedc1f382ff25cef6b0bffa9617f4124a7 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Mon, 30 Oct 2023 17:04:00 +0200 Subject: [PATCH] new file: projects/github.com/confluentinc/libserdes/package.yml new file: projects/github.com/confluentinc/libserdes/test.c --- .../confluentinc/libserdes/package.yml | 26 +++++++++++++++++++ .../github.com/confluentinc/libserdes/test.c | 17 ++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 projects/github.com/confluentinc/libserdes/package.yml create mode 100644 projects/github.com/confluentinc/libserdes/test.c diff --git a/projects/github.com/confluentinc/libserdes/package.yml b/projects/github.com/confluentinc/libserdes/package.yml new file mode 100644 index 00000000..5c46fc5d --- /dev/null +++ b/projects/github.com/confluentinc/libserdes/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/confluentinc/libserdes/archive/refs/tags/v7.5.2-rc231027084844.tar.gz + strip-components: 1 +versions: + # v7.5.2-rc231027084844 + - 7.5.2.231027084844 +dependencies: + apache.org/avro: '*' + digip.org/jansson: '*' + curl.se: '*' +build: + dependencies: + linux: + gnu.org/gcc: '*' + gnu.org/make: '*' + script: + - ./configure --prefix={{prefix}} + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} install +test: + dependencies: + linux: + gnu.org/gcc: '*' + script: + - cc test.c -lserdes -o test + - ./test \ No newline at end of file diff --git a/projects/github.com/confluentinc/libserdes/test.c b/projects/github.com/confluentinc/libserdes/test.c new file mode 100644 index 00000000..664a9e1f --- /dev/null +++ b/projects/github.com/confluentinc/libserdes/test.c @@ -0,0 +1,17 @@ +#include +#include +#include +#include + +int main() +{ + char errstr[512]; + serdes_conf_t *sconf = serdes_conf_new(NULL, 0, NULL); + serdes_t *serdes = serdes_new(sconf, errstr, sizeof(errstr)); + if (serdes == NULL) + { + errx(1, "constructing serdes: %s", errstr); + } + serdes_destroy(serdes); + return 0; +} \ No newline at end of file