move check-missing-function script to tests

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-26 10:37:34 +02:00
parent 39a1c95666
commit 9ba73e66c0

View File

@ -4,10 +4,11 @@ set -e
# functions already in src/proxmox-acme
PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
src/proxmox-acme | sed -r 's/\|$//')
../proxmox-acme | sed -r 's/\|$//')
# functions defined in all plugins
LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
src/acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
../acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
grep -E '\b_[a-zA-Z0-9_-]+ ' src/acme.sh/dnsapi/dns_*sh | \
grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^src/acme.sh/dnsapi/.*sh: *#"
grep -P '\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^../acme.sh/dnsapi/.*sh: *#"