]> git.proxmox.com Git - proxmox-acme.git/commitdiff
tests: add non-word boundary to present functions
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 21 Feb 2023 13:13:18 +0000 (14:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Feb 2023 16:26:28 +0000 (17:26 +0100)
noticed that _clearaccountconf_mutable is used in dns_cf.sh, but not
present (it gets masked since we provide _clearaccountconf)

tested with this example.

additionally update missing-functions.expected - _error is not
present in upstream `acme.sh` but used in dns_aws.sh (I expect an
error which is only hit very seldomly)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/test/check-missing-functions
src/test/missing-functions.expected

index cb819fc2d11179691090676cd123233fbf55f37c..dfc32d3f7d62a132d6307832a15d13d1ac9ecd25 100755 (executable)
@@ -3,11 +3,11 @@
 set -e
 
 # functions already in src/proxmox-acme
-PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
+PRESENT=$(awk 'BEGIN{ORS="\\W|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
        ../proxmox-acme | sed -r 's/\|$//')
 
 # functions defined in all plugins
-LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
+LOCAL=$(awk 'BEGIN{ORS="\\W|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
        ../acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
 
 grep -P '(?<!["$])\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
index 467f9ac400d761eb737ca07d89113810dc9c7566..5c2b053fb49ea2ef1d85eeefb079ef567f60d194 100644 (file)
@@ -1,3 +1,4 @@
+../acme.sh/dnsapi/dns_aws.sh:      _error "invalid domain"
 ../acme.sh/dnsapi/dns_cpanel.sh:  for _domain in $_domains; do
 ../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