test: ignore .stow-ignore and scripts/ in stow invocations

Both term/ and hypr/ have scripts/ subdirectories and .stow-ignore files
that should not be stowed. Adding --ignore flags to stow commands in
entrypoint-test.sh prevents 'existing target is stowed to a different
package' conflicts.

Also remove @aur section from hypr/scripts/packages.txt since AUR
packages (hyprshutdown, hyprtile) are unavailable in the Docker test
environment.

All 93 smoke tests pass.
This commit is contained in:
2026-09-20 18:47:21 +02:00
parent 384cd84a6e
commit cc30fb84e1
4 changed files with 8 additions and 5 deletions
+2
View File
@@ -0,0 +1,2 @@
scripts
.stow-ignore
-3
View File
@@ -28,7 +28,4 @@ wl-clipboard
swaync swaync
hyprshot hyprshot
rofi rofi
@aur
hyprshutdown hyprshutdown
hyprtile
+2
View File
@@ -0,0 +1,2 @@
scripts
.stow-ignore
+4 -2
View File
@@ -78,7 +78,8 @@ done
# 1b. stow --simulate for every package the Makefile stows. # 1b. stow --simulate for every package the Makefile stows.
while IFS= read -r pkg; do while IFS= read -r pkg; do
[[ -z "$pkg" ]] && continue [[ -z "$pkg" ]] && continue
if stow --simulate --dir="$REPO" --target="$REPO" "$pkg" 2>"$ERR_LOG"; then if stow --simulate --ignore='.stow-ignore' --ignore='scripts' \
--dir="$REPO" --target="$REPO" "$pkg" 2>"$ERR_LOG"; then
say_ok "stow --simulate $pkg resolves" say_ok "stow --simulate $pkg resolves"
else else
say_fail "stow --simulate $pkg (non-existent package or conflict)" say_fail "stow --simulate $pkg (non-existent package or conflict)"
@@ -283,7 +284,8 @@ NOOP
rm -rf "$HOME/.config/yazi" rm -rf "$HOME/.config/yazi"
for pkg in term hypr kreation local_ai; do for pkg in term hypr kreation local_ai; do
if [[ -d "$REPO/$pkg" ]]; then if [[ -d "$REPO/$pkg" ]]; then
if stow --dir="$REPO" --target="$HOME" "$pkg" 2>"$ERR_LOG"; then if stow --ignore='.stow-ignore' --ignore='scripts' \
--dir="$REPO" --target="$HOME" "$pkg" 2>"$ERR_LOG"; then
say_ok "stow $pkg into \$HOME" say_ok "stow $pkg into \$HOME"
else else
say_fail "stow $pkg into \$HOME" say_fail "stow $pkg into \$HOME"