diff options
Diffstat (limited to 'test-logic.sh')
| -rwxr-xr-x | test-logic.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-logic.sh b/test-logic.sh index 797041f..423d2b5 100755 --- a/test-logic.sh +++ b/test-logic.sh @@ -143,6 +143,15 @@ mkdir -p "$T/cat/verpkg" printf 'PRGNAM="verpkg"\nVERSION="3.4.5"\nREQUIRES=""\n' > "$T/cat/verpkg/verpkg.info" [[ "$(version_of "$T/cat/verpkg")" == "3.4.5" ]] && ok "version_of reads VERSION" || bad "version_of wrong, got [$(version_of "$T/cat/verpkg")]" +# --- rsync_excludes: one anchored --exclude per personal tree key ------------ +declare -A SBO_PERSONAL_TREES=([personal]=url1 [pentesting]=url2) +ex="$(rsync_excludes)" +echo "$ex" | grep -qx -- "--exclude=/personal/" && ok "rsync_excludes personal" || bad "missing --exclude=/personal/, got [$ex]" +echo "$ex" | grep -qx -- "--exclude=/pentesting/" && ok "rsync_excludes pentesting" || bad "missing --exclude=/pentesting/, got [$ex]" + +declare -A SBO_PERSONAL_TREES=() +[[ -z "$(rsync_excludes)" ]] && ok "rsync_excludes empty for no trees" || bad "rsync_excludes should be empty, got [$(rsync_excludes)]" + # --- result ----------------------------------------------------------------- echo echo "$pass passed, $fail failed" |
