2021-09-03 03:23:16 +03:00
|
|
|
@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 =====================
|
2022-07-01 02:53:03 +03:00
|
|
|
@echo Populate eBPF Store.
|
|
|
|
@echo =====================
|
|
|
|
.\export_program_info.exe --clear
|
|
|
|
.\export_program_info.exe
|
|
|
|
@echo =====================
|
2021-09-03 03:23:16 +03:00
|
|
|
@echo Executing Unit Tests.
|
|
|
|
@echo =====================
|
|
|
|
.\unit_tests.exe
|
2021-09-10 03:01:52 +03:00
|
|
|
@if ERRORLEVEL 1 goto EOF
|
2021-09-03 03:23:16 +03:00
|
|
|
@echo ====================
|
|
|
|
@echo Executing API Tests.
|
|
|
|
@echo ====================
|
|
|
|
.\api_test.exe
|
2021-09-10 03:01:52 +03:00
|
|
|
@if ERRORLEVEL 1 goto EOF
|
2021-09-03 03:23:16 +03:00
|
|
|
@echo =================================
|
|
|
|
@echo Executing Sample Extension Tests.
|
|
|
|
@echo =================================
|
|
|
|
.\sample_ext_app.exe
|
2021-09-10 03:01:52 +03:00
|
|
|
@if ERRORLEVEL 1 goto EOF
|
2022-04-21 01:59:17 +03:00
|
|
|
@echo ====================
|
|
|
|
@echo Executing Bpftool Tests.
|
|
|
|
@echo ====================
|
|
|
|
.\bpftool_tests.exe
|
|
|
|
@if ERRORLEVEL 1 goto EOF
|
2021-09-03 03:23:16 +03:00
|
|
|
goto EOF
|
|
|
|
:USAGE
|
|
|
|
@echo Usage: run_tests /noinstall
|
|
|
|
:EOF
|