remove smoke tests

This commit is contained in:
2026-07-07 10:33:11 -04:00
parent ca518c5f8a
commit f8890c6eeb
2 changed files with 0 additions and 89 deletions
-59
View File
@@ -1,59 +0,0 @@
#!/bin/bash
# Smoke test for Apex Phase 1: Intake flow
set -e
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
DB_PATH="${HOME}/.apex/apex.db"
BINARY="${REPO_ROOT}/apex"
echo "=== Apex Phase 1 Smoke Test ==="
echo ""
# Step 1: Clean database
echo "[1/3] Cleaning database..."
rm -f "$DB_PATH"
echo "✅ Database cleaned"
# Step 2: Build the binary
echo "[2/3] Building apex binary..."
cd "$REPO_ROOT"
if ! make build > /dev/null 2>&1; then
echo "❌ Build failed"
exit 1
fi
if [ ! -f "$BINARY" ]; then
echo "❌ Binary not found at $BINARY"
exit 1
fi
echo "✅ Binary built successfully"
# Step 3: Verify binary is executable and run (will timeout, but creates DB)
echo "[3/3] Initializing database..."
timeout 1 "$BINARY" 2>/dev/null || true
if [ -f "$DB_PATH" ]; then
echo "✅ Database initialized"
else
echo "❌ Database not created"
exit 1
fi
echo ""
echo "=== Smoke test passed! ✅ ==="
echo ""
echo "Phase 1 implementation is complete and verified:"
echo " ✅ Intake state machine"
echo " ✅ 8-phase form views"
echo " ✅ Form validation (required fields)"
echo " ✅ Session persistence"
echo " ✅ DOCX parser with XXE protection"
echo " ✅ Voice extractor with Claude CLI"
echo ""
echo "To test interactively:"
echo " cd $REPO_ROOT && ./apex"
echo ""
echo "Expected flow:"
echo " Press 'n' → Fill forms (tab/shift+tab to navigate)"
echo " Press enter to validate and advance"
echo " Complete all 8 phases"
-30
View File
@@ -1,30 +0,0 @@
#!/usr/bin/env bash
# Smoke test for Phase 2 scan:
# - go build + go vet
# - go test on internal/scan
# - hits the live Greenhouse Dragos API once to confirm end-to-end parse
set -euo pipefail
cd "$(dirname "$0")/.."
echo "-> go build ./..."
go build ./...
echo "-> go vet ./..."
go vet ./...
echo "-> go test ./internal/scan/..."
go test ./internal/scan/... -count=1
echo "-> live check: Dragos Greenhouse API (HTTP 200 + jobs[] present)"
python3 - <<'PY'
import json, urllib.request
req = urllib.request.Request("https://boards-api.greenhouse.io/v1/boards/dragos/jobs",
headers={"User-Agent": "apex-smoke/1.0"})
with urllib.request.urlopen(req, timeout=10) as r:
body = json.loads(r.read())
jobs = body.get("jobs", [])
assert isinstance(jobs, list) and len(jobs) > 0, "expected jobs[] populated"
print(f" {len(jobs)} jobs returned — smoke ok")
PY
echo "-> all checks passed"