-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.bat
More file actions
93 lines (77 loc) · 2.16 KB
/
Copy pathrun_tests.bat
File metadata and controls
93 lines (77 loc) · 2.16 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
setlocal enabledelayedexpansion
set CS=%CS%
if "%CS%"=="" set CS=cs
set 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
if errorlevel 1 exit /b 1
)
echo.
echo === Integration Tests ===
echo.
echo --- tests\test_tls_trust.csc ---
%CS% %IMPORT_FLAGS% tests\test_tls_trust.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_tls_errors.csc ---
%CS% %IMPORT_FLAGS% tests\test_tls_errors.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_master_slave.csc ---
%CS% %IMPORT_FLAGS% tests\test_master_slave.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_http_compliance.csc ---
%CS% %IMPORT_FLAGS% tests\test_http_compliance.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_error_paths.csc ---
%CS% %IMPORT_FLAGS% tests\test_error_paths.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_stress_keepalive.csc ---
%CS% %IMPORT_FLAGS% tests\test_stress_keepalive.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_stress_concurrent.csc ---
%CS% %IMPORT_FLAGS% tests\test_stress_concurrent.csc
if errorlevel 1 exit /b 1
echo.
echo --- tests\test_stress_master_slave.csc ---
%CS% %IMPORT_FLAGS% tests\test_stress_master_slave.csc
if errorlevel 1 exit /b 1
if not "%DEEPSEEK_API_KEY%"=="" (
echo.
echo --- tests\test_deepseek.csc ---
%CS% %IMPORT_FLAGS% tests\test_deepseek.csc
if errorlevel 1 exit /b 1
) else (
echo.
echo SKIP: tests\test_deepseek.csc (DEEPSEEK_API_KEY not set)
)
echo.
echo ============================================
echo All tests completed
echo ============================================