summaryrefslogtreecommitdiff
path: root/ar/.local/bin/tests/test-qndl-artist.sh
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-07-01 16:09:24 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-07-01 16:09:24 +0900
commit51934c19746f1d5a901c1eb6d49b7c354723951c (patch)
treec7957bd357b136bfc6341fb23c9ac29291eb6dcb /ar/.local/bin/tests/test-qndl-artist.sh
parentfc06e37b9fd148b324bf7bdb0db26b8c3792dada (diff)
feat(qndl-artist): implement merge --apply (relocate, tag, map, reindex)
Diffstat (limited to 'ar/.local/bin/tests/test-qndl-artist.sh')
-rw-r--r--ar/.local/bin/tests/test-qndl-artist.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ar/.local/bin/tests/test-qndl-artist.sh b/ar/.local/bin/tests/test-qndl-artist.sh
index 6c846ee..0d5ee9a 100644
--- a/ar/.local/bin/tests/test-qndl-artist.sh
+++ b/ar/.local/bin/tests/test-qndl-artist.sh
@@ -70,4 +70,14 @@ eq "merge dry: MC=영문혼합" "yes" "$(printf '%s' "$DRY" | grep -q '→ M
eq "merge dry: 단독 미포함" "no" "$(printf '%s' "$DRY" | grep -q 'Lauv' && echo yes || echo no)"
eq "merge dry: 비파괴" "yes" "$([ -f "$XDG_MUSIC_DIR/4MEN/A/a.mp3" ] && echo yes || echo no)"
+# --- merge --apply ---
+"$BIN" merge --apply >/dev/null 2>&1
+eq "apply: 4MEN 사라짐" "no" "$([ -d "$XDG_MUSIC_DIR/4MEN" ] && echo yes || echo no)"
+eq "apply: 4Men에 병합" "yes" "$([ -f "$XDG_MUSIC_DIR/4Men/A/a.mp3" ] && echo yes || echo no)"
+eq "apply: MC 표준폴더 생성" "yes" "$([ -d "$XDG_MUSIC_DIR/M.C The Max" ] && echo yes || echo no)"
+eq "apply: MC 한글폴더 제거" "no" "$([ -d "$XDG_MUSIC_DIR/엠씨더맥스 (M.C The Max)" ] && echo yes || echo no)"
+eq "apply: album_artist 통일" "4Men" "$(tag_of "$XDG_MUSIC_DIR/4Men/A/a.mp3" album_artist)"
+eq "apply: 맵 기록" "yes" "$(awk -F'\t' '$1=="4MEN" && $2=="4Men"{print "yes"; exit}' "$QNDL_ALIASES")"
+eq "apply: idempotent 재실행" "No case/paren duplicate groups found." "$("$BIN" merge)"
+
exit $FAIL