From 9ba73e66c09179b4a37fb1ce3b9513c30ef7df37 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 26 Apr 2022 10:37:34 +0200 Subject: [PATCH] move check-missing-function script to tests Signed-off-by: Thomas Lamprecht --- .../test/check-missing-functions | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename check-missing-functions => src/test/check-missing-functions (51%) diff --git a/check-missing-functions b/src/test/check-missing-functions similarity index 51% rename from check-missing-functions rename to src/test/check-missing-functions index a76aefc..c8a2b3d 100755 --- a/check-missing-functions +++ b/src/test/check-missing-functions @@ -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: *#" -- 2.39.2