Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrevi committed Mar 12, 2024
1 parent dc9947b commit 5fcc30f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/run_driver_tests.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Push-Location $WorkingDirectory
Import-Module .\common.psm1 -Force -ArgumentList ($LogFileName) -WarningAction SilentlyContinue
Import-Module .\install_ebpf.psm1 -Force -ArgumentList ($WorkingDirectory, $LogFileName) -WarningAction SilentlyContinue

$TestDirectory = "$env:ProgramFiles\ebpf-for-windows\testing"
$CodeCoverage = "$env:ProgramFiles\OpenCppCoverage\OpenCppCoverage.exe"

#
Expand Down Expand Up @@ -114,7 +113,7 @@ function Invoke-CICDTests
"socket_tests.exe")

foreach ($Test in $TestList) {
Invoke-Test -TestName "$TestDirectory\$Test" -VerboseLogs $VerboseLogs -Coverage $Coverage
Invoke-Test -TestName "$Test" -VerboseLogs $VerboseLogs -Coverage $Coverage
}

if ($Coverage) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/vm_run_tests.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Set-eBPFProgramOnVM
[Parameter(Mandatory=$True)] [string] $LogFileName)
$WorkingDirectory = "$Env:SystemDrive\$WorkingDirectory"
Import-Module $WorkingDirectory\common.psm1 -ArgumentList ($LogFileName) -Force -WarningAction SilentlyContinue
Import-Module $WorkingDirectory\run_driver_tests.psm1 -ArgumentList ($TestDWorkingDirectoryirectory, $LogFileName) -Force -WarningAction SilentlyContinue
Import-Module $WorkingDirectory\run_driver_tests.psm1 -ArgumentList ($WorkingDirectory, $LogFileName) -Force -WarningAction SilentlyContinue

Write-Log "Setting program $ProgId at interface $Interface on $VM."
Invoke-NetshEbpfCommand -Arguments "set program $ProgId xdp_test interface=""$Interface"""
Expand Down

0 comments on commit 5fcc30f

Please sign in to comment.