-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
79 lines (64 loc) · 2 KB
/
Copy pathrun_tests.sh
File metadata and controls
79 lines (64 loc) · 2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env bash
set -e
CS="${CS:-cs}"
IMPORT_FLAGS="-i build/imports"
echo "============================================"
echo " CovScript Network Extension - Test Runner"
echo "============================================"
echo ""
echo "=== Unit Tests ==="
for t in tests/test_url_parse.csc \
tests/test_argparse.csc \
tests/test_header_parser.csc \
tests/test_utils.csc \
tests/test_tcp_sync.csc \
tests/test_udp.csc \
tests/test_http_roundtrip.csc \
tests/test_http_client.csc \
tests/test_http_server.csc \
tests/test_proxy.csc \
tests/test_openai_client.csc \
tests/test_fiber_socket.csc \
tests/test_async_tcp.csc; do
echo ""
echo "--- $t ---"
"$CS" $IMPORT_FLAGS "$t"
done
echo ""
echo "=== Integration Tests ==="
echo ""
echo "--- tests/test_tls_trust.csc ---"
"$CS" $IMPORT_FLAGS tests/test_tls_trust.csc
echo ""
echo "--- tests/test_tls_errors.csc ---"
"$CS" $IMPORT_FLAGS tests/test_tls_errors.csc
echo ""
echo "--- tests/test_master_slave.csc ---"
"$CS" $IMPORT_FLAGS tests/test_master_slave.csc
echo ""
echo "--- tests/test_http_compliance.csc ---"
"$CS" $IMPORT_FLAGS tests/test_http_compliance.csc
echo ""
echo "--- tests/test_error_paths.csc ---"
"$CS" $IMPORT_FLAGS tests/test_error_paths.csc
echo ""
echo "--- tests/test_stress_keepalive.csc ---"
"$CS" $IMPORT_FLAGS tests/test_stress_keepalive.csc
echo ""
echo "--- tests/test_stress_concurrent.csc ---"
"$CS" $IMPORT_FLAGS tests/test_stress_concurrent.csc
echo ""
echo "--- tests/test_stress_master_slave.csc ---"
"$CS" $IMPORT_FLAGS tests/test_stress_master_slave.csc
if [ -n "$DEEPSEEK_API_KEY" ]; then
echo ""
echo "--- tests/test_deepseek.csc ---"
"$CS" $IMPORT_FLAGS tests/test_deepseek.csc
else
echo ""
echo "SKIP: tests/test_deepseek.csc (DEEPSEEK_API_KEY not set)"
fi
echo ""
echo "============================================"
echo " All tests completed"
echo "============================================"