From 50ab3be9565b403792726f5bd26b8e0f107494d2 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Tue, 21 Feb 2023 14:13:18 +0100 Subject: [PATCH] tests: add non-word boundary to present functions 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 --- src/test/check-missing-functions | 4 ++-- src/test/missing-functions.expected | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/check-missing-functions b/src/test/check-missing-functions index cb819fc..dfc32d3 100755 --- a/src/test/check-missing-functions +++ b/src/test/check-missing-functions @@ -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 '(?