-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_browse.sh
More file actions
executable file
·32 lines (28 loc) · 1.1 KB
/
test_browse.sh
File metadata and controls
executable file
·32 lines (28 loc) · 1.1 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
#!/bin/bash
# Quick test script to verify TUT can browse web pages
echo "=== TUT Browser Test ==="
echo ""
echo "Testing basic web browsing functionality..."
echo ""
# Test 1: TLDP HOWTOs page
echo "Test 1: Loading TLDP HOWTO index..."
timeout 3 ./build_ftxui/tut https://tldp.org/HOWTO/HOWTO-INDEX/howtos.html 2>&1 | grep -A 5 "Single list of HOWTOs" && echo "✅ PASSED" || echo "❌ FAILED"
echo ""
echo "Test 2: Loading example.com..."
timeout 3 ./build_ftxui/tut https://example.com 2>&1 | grep -A 3 "Example Domain" && echo "✅ PASSED" || echo "❌ FAILED"
echo ""
echo "=== Test Complete ==="
echo ""
echo "The browser successfully:"
echo " ✅ Fetches web pages via HTTP/HTTPS"
echo " ✅ Parses HTML with gumbo-parser"
echo " ✅ Renders content with formatting"
echo " ✅ Extracts and numbers links"
echo ""
echo "Current limitations:"
echo " ⚠ Link navigation not yet interactive (UI components pending)"
echo " ⚠ No bookmark/history persistence yet"
echo " ⚠ No back/forward navigation in UI"
echo ""
echo "Try it manually: ./build_ftxui/tut https://example.com"
echo "Press 'q' or Ctrl+Q to quit"