@echo off setlocal enabledelayedexpansion echo Running all tests... echo. set passed=0 set failed=0 set skipped=0 set total=0 for %%t in ( test_etcp_crypto test_crypto test_etcp_two_instances test_etcp_simple_traffic test_etcp_minimal test_etcp_100_packets test_pkt_normalizer_etcp test_pkt_normalizer_standalone test_etcp_api test_ll_queue test_ecc_encrypt test_intensive_memory_pool test_memory_pool_and_config test_packet_dump test_u_async_comprehensive test_u_async_performance test_debug_categories test_config_debug test_route_lib test_bgp_route_exchange test_routing_mesh bench_timeout_heap bench_uasync_timeouts ) do ( set /a total+=1 if exist "tests\%%t.exe" ( echo [RUN] %%t tests\%%t.exe > tests\%%t.log 2>&1 if !errorlevel! equ 0 ( echo [PASS] %%t set /a passed+=1 ) else ( echo [FAIL] %%t set /a failed+=1 echo Failed test log for %%t: type tests\%%t.log echo. ) ) else ( echo [SKIP] %%t (not built) set /a skipped+=1 ) ) echo. echo ========================================== echo Test Results: %passed% passed, %failed% failed, %skipped% skipped (%total% total) echo ========================================== if %failed% gtr 0 exit /b 1 exit /b 0