Skip to content

Commit 0fd8be2

Browse files
committed
revert tests for homebrew
1 parent 06c6233 commit 0fd8be2

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

build_files/base/20-tests.sh

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -77,48 +77,4 @@ for unit in "${IMPORTANT_UNITS[@]}"; do
7777
fi
7878
done
7979

80-
# Test Homebrew build-time installation
81-
echo "Testing Homebrew build-time installation..."
82-
83-
# Test that Homebrew is actually installed
84-
test -x /var/home/linuxbrew/.linuxbrew/bin/brew || { echo "Homebrew binary not found or not executable"; exit 1; }
85-
/var/home/linuxbrew/.linuxbrew/bin/brew --version || { echo "Homebrew --version failed"; exit 1; }
86-
87-
# Verify /home -> /var/home symlink works (ostree system feature)
88-
test -d /home/linuxbrew/.linuxbrew || { echo "/home/linuxbrew not accessible (ostree /home symlink issue)"; exit 1; }
89-
90-
# Test directory ownership (should be UID/GID 1000)
91-
stat -c "%u:%g" /var/home/linuxbrew/.linuxbrew | grep -q "1000:1000" || { echo "Homebrew directory has wrong ownership"; exit 1; }
92-
93-
# Test that all systemd service files exist
94-
# Homebrew now installed at build-time
95-
HOMEBREW_SYSTEMD_FILES=(
96-
/usr/lib/systemd/system/brew-update.service
97-
/usr/lib/systemd/system/brew-update.timer
98-
/usr/lib/systemd/system/brew-upgrade.service
99-
/usr/lib/systemd/system/brew-upgrade.timer
100-
/usr/lib/systemd/system-preset/01-homebrew.preset
101-
)
102-
103-
for file in "${HOMEBREW_SYSTEMD_FILES[@]}"; do
104-
test -f "$file" || { echo "Missing systemd file: ${file}"; exit 1; }
105-
done
106-
107-
# Test that shell integration files exist
108-
HOMEBREW_SHELL_FILES=(
109-
/etc/profile.d/brew.sh
110-
/etc/profile.d/brew-bash-completion.sh
111-
/usr/share/fish/vendor_conf.d/ublue-brew.fish
112-
)
113-
114-
for file in "${HOMEBREW_SHELL_FILES[@]}"; do
115-
test -f "$file" || { echo "Missing shell integration file: ${file}"; exit 1; }
116-
done
117-
118-
# Test that system configuration files exist
119-
test -f /usr/lib/tmpfiles.d/homebrew.conf || { echo "Missing tmpfiles.d/homebrew.conf"; exit 1; }
120-
test -f /etc/security/limits.d/30-brew-limits.conf || { echo "Missing limits.d/30-brew-limits.conf"; exit 1; }
121-
122-
echo "All Homebrew installation files present and valid"
123-
12480
echo "::endgroup::"

0 commit comments

Comments
 (0)