-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest_generation_simple.sh
More file actions
executable file
·44 lines (37 loc) · 1.08 KB
/
test_generation_simple.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Simple test: start server, make API call, monitor logs
BUNDLED_BIN="./dist/AceForge.app/Contents/MacOS/AceForge_bin"
PORT=5056
echo "Starting server..."
$BUNDLED_BIN > /tmp/aceforge_simple.log 2>&1 &
APP_PID=$!
echo "Waiting for server (PID: $APP_PID)..."
for i in {1..60}; do
if curl -s http://127.0.0.1:$PORT/ > /dev/null 2>&1; then
echo "✓ Server ready"
break
fi
sleep 1
done
echo ""
echo "Sending generation request..."
curl -X POST http://127.0.0.1:$PORT/generate \
-F "prompt=upbeat electronic music, synthwave" \
-F "instrumental=on" \
-F "target_seconds=10" \
-F "steps=5" \
-F "guidance_scale=4.0" \
-F "seed=42" \
-F "basename=test_track" \
-v 2>&1 | head -20
echo ""
echo "Monitoring logs for 60 seconds..."
for i in {1..12}; do
echo "--- Log check $i (after $((i*5)) seconds) ---"
tail -20 /tmp/aceforge_simple.log | grep -E "GENERATE|Error|Finished|ACE" || echo " (no relevant log entries)"
sleep 5
done
echo ""
echo "Final log tail:"
tail -30 /tmp/aceforge_simple.log
kill $APP_PID 2>/dev/null