From: claudio Date: Thu, 15 Dec 2022 12:04:59 +0000 (+0000) Subject: Add shim functions for repo code introduced by the pre repo stats. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=266c332ccaec519ad5bf206e58609b3c4fe6eed2;p=openbsd Add shim functions for repo code introduced by the pre repo stats. From tb@ --- diff --git a/regress/usr.sbin/rpki-client/Makefile.inc b/regress/usr.sbin/rpki-client/Makefile.inc index efa343371b2..c8e44e89a2f 100644 --- a/regress/usr.sbin/rpki-client/Makefile.inc +++ b/regress/usr.sbin/rpki-client/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.27 2022/11/26 12:09:34 job Exp $ +# $OpenBSD: Makefile.inc,v 1.28 2022/12/15 12:04:59 claudio Exp $ .PATH: ${.CURDIR}/../../../../usr.sbin/rpki-client @@ -43,7 +43,7 @@ run-regress-test-mft: test-mft ./test-mft -v ${.CURDIR}/../mft/*.mft SRCS_test-roa+= test-roa.c roa.c cms.c x509.c ip.c as.c io.c log.c \ - encoding.c print.c validate.c cert.c mft.c + encoding.c print.c validate.c cert.c mft.c repo-dummy.c run-regress-test-roa: test-roa ./test-roa -v ${.CURDIR}/../roa/*.roa @@ -68,7 +68,7 @@ run-regress-test-tal: test-tal ./test-tal -v ${.CURDIR}/../tal/*.tal SRCS_test-aspa+= test-aspa.c aspa.c cms.c x509.c ip.c as.c io.c log.c \ - encoding.c print.c validate.c cert.c mft.c + encoding.c print.c validate.c cert.c mft.c repo-dummy.c run-regress-test-aspa: test-aspa ./test-aspa -v ${.CURDIR}/../aspa/*.asa diff --git a/regress/usr.sbin/rpki-client/repo-dummy.c b/regress/usr.sbin/rpki-client/repo-dummy.c new file mode 100644 index 00000000000..2147f6cd0ad --- /dev/null +++ b/regress/usr.sbin/rpki-client/repo-dummy.c @@ -0,0 +1,24 @@ +/* + * Public domain + * dummy shim for some tests. + */ + +#include "extern.h" + +void +repo_stat_inc(struct repo *repo, enum rtype type, enum stype subtype) +{ + return; +} + +struct repo * +repo_byid(unsigned int id) +{ + return NULL; +} + +unsigned int +repo_id(const struct repo *repo) +{ + return 0; +}