Skip to content

Commit 151061b

Browse files
elrrrrrrrclaude
andcommitted
test(e2e): add placeholder check for installed binary
Verify the installed utoo is a real binary, not the placeholder script. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b91a3ec commit 151061b

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

e2e/utoo-pm.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ try {
263263
throw "utoo binary not found after npm install -g"
264264
}
265265

266+
# Verify it's not a placeholder
267+
$content = Get-Content $installedUtoo -Raw -ErrorAction SilentlyContinue
268+
if ($content -and $content.Contains("placeholder")) {
269+
throw "installed binary is still a placeholder"
270+
}
271+
266272
& $installedUtoo --version
267273
if ($LASTEXITCODE -ne 0) { throw "utoo --version failed" }
268274

e2e/utoo-pm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,12 @@ if [ ! -f "$INSTALLED_UTOO" ]; then
440440
exit 1
441441
fi
442442

443+
# Verify it's not a placeholder
444+
if head -1 "$INSTALLED_UTOO" | grep -q "placeholder"; then
445+
echo -e "${RED}FAIL: installed binary is still a placeholder${NC}"
446+
exit 1
447+
fi
448+
443449
"$INSTALLED_UTOO" --version
444450
echo -e "${GREEN}PASS: npm pack + install -g works correctly${NC}"
445451

0 commit comments

Comments
 (0)