From: Thomas Lamprecht Date: Tue, 26 Apr 2022 08:47:32 +0000 (+0200) Subject: tests: run missing-function test on build X-Git-Url: https://git.proxmox.com/?p=proxmox-acme.git;a=commitdiff_plain;h=da5faaaca3633898f0e4681ad5e5ae7ef9673586;ds=sidebyside tests: run missing-function test on build as we only use a heuristic we maintain a known good expected false positive list, update that if new ones get added but be sure that no new function was included! Signed-off-by: Thomas Lamprecht --- diff --git a/src/test/Makefile b/src/test/Makefile index 982f698..5768124 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -1,6 +1,12 @@ -.PHONY: test -test: verify-dnsapi-plugins-in-schema.pl.t +.PHONY: test test-missing-functions +test: verify-dnsapi-plugins-in-schema.pl.t test-missing-functions %.t: % ./$< + +test-missing-functions: + ./check-missing-functions | sort -u > missing-functions.actual + # check if any change against our known-ok false-positive list + diff -up -N missing-functions.expected missing-functions.actual + rm missing-functions.actual # ok, cleanup diff --git a/src/test/missing-functions.expected b/src/test/missing-functions.expected new file mode 100644 index 0000000..9547936 --- /dev/null +++ b/src/test/missing-functions.expected @@ -0,0 +1,4 @@ +../acme.sh/dnsapi/dns_cyon.sh: printf "%s" "${_dns_entries}" | while read -r _hash _identifier; do +../acme.sh/dnsapi/dns_do.sh: for _rrid in ${_rr_list}; do +../acme.sh/dnsapi/dns_gdnsdk.sh: for _domain in $_domains; do +../acme.sh/dnsapi/dns_openstack.sh: for _rec in $_records; do