]> git.proxmox.com Git - proxmox-acme.git/commitdiff
tests: run missing-function test on build
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 08:47:32 +0000 (10:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 08:47:34 +0000 (10:47 +0200)
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 <t.lamprecht@proxmox.com>
src/test/Makefile
src/test/missing-functions.expected [new file with mode: 0644]

index 982f6986552afb5f90db83b788977faec55c3dd6..5768124067fef6776ccfef6f2c4b1ded658248f9 100644 (file)
@@ -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 (file)
index 0000000..9547936
--- /dev/null
@@ -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