ebpf-for-windows/scripts/run_tests.bat

42 строки
911 B
Batchfile

@echo off
rem Copyright (c) Microsoft Corporation
rem SPDX-License-Identifier: MIT
if [%1]==[] (
set /A install=1
goto :INSTALL
)
if "%1" == "/noinstall" (
set /A install=0
) else (
goto :USAGE
)
:INSTALL
if %install% == 1 (
@echo Installing eBPF components.
call .\install-ebpf.bat
)
@echo =====================
@echo Executing Unit Tests.
@echo =====================
.\unit_tests.exe
@if ERRORLEVEL 1 goto EOF
@echo ====================
@echo Executing API Tests.
@echo ====================
.\api_test.exe
@if ERRORLEVEL 1 goto EOF
@echo =================================
@echo Executing Sample Extension Tests.
@echo =================================
.\sample_ext_app.exe
@if ERRORLEVEL 1 goto EOF
@echo ====================
@echo Executing Bpftool Tests.
@echo ====================
.\bpftool_tests.exe
@if ERRORLEVEL 1 goto EOF
goto EOF
:USAGE
@echo Usage: run_tests /noinstall
:EOF