Skip to content

Commit

Permalink
Add regression test for 0.11.0 release (#2852)
Browse files Browse the repository at this point in the history
* add regression test 0.11

* update download script
  • Loading branch information
saxena-anurag authored Sep 15, 2023
1 parent 4c3d2cd commit 3003ad0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions scripts/config_test_vm.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function Initialize-NetworkInterfacesOnVMs

function Get-RegressionTestArtifacts
{
$ArifactVersionList = @("0.9.0")
$ArifactVersionList = @("0.11.0")
$RegressionTestArtifactsPath = "$pwd\regression"
mkdir $RegressionTestArtifactsPath

Expand All @@ -354,9 +354,9 @@ function Get-RegressionTestArtifacts

Write-Log "Extracting $ArtifactName"
Expand-Archive -Path "$DownloadPath\artifact.zip" -DestinationPath $DownloadPath -Force
Expand-Archive -Path "$DownloadPath\build-Release.zip" -DestinationPath $DownloadPath -Force
Expand-Archive -Path "$DownloadPath\build-NativeOnlyRelease.zip" -DestinationPath $DownloadPath -Force

Move-Item -Path "$DownloadPath\Release\cgroup_sock_addr2.sys" -Destination "$RegressionTestArtifactsPath\cgroup_sock_addr2_$ArtifactVersion.sys" -Force
Move-Item -Path "$DownloadPath\NativeOnlyRelease\cgroup_sock_addr2.sys" -Destination "$RegressionTestArtifactsPath\cgroup_sock_addr2_$ArtifactVersion.sys" -Force
Remove-Item -Path $DownloadPath -Force -Recurse
}
}
Expand Down
12 changes: 2 additions & 10 deletions tests/api_test/api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -738,13 +738,7 @@ TEST_CASE("bind_tailcall_max_native_test", "[native_tests]")

program_load_attach_helper_t _helper;
_helper.initialize(
"tail_call_max_exceed.sys",
BPF_PROG_TYPE_BIND,
"bind_test_caller",
EBPF_EXECUTION_NATIVE,
nullptr,
0,
hook);
"tail_call_max_exceed.sys", BPF_PROG_TYPE_BIND, "bind_test_caller", EBPF_EXECUTION_NATIVE, nullptr, 0, hook);
object = _helper.get_object();

fd_t prog_map_fd = bpf_object__find_map_fd_by_name(object, "bind_tail_call_map");
Expand Down Expand Up @@ -1058,9 +1052,7 @@ test_sock_addr_native_program_load_attach(const char* file_name)
test_sock_addr_native_program_load_attach((const char*)"cgroup_sock_addr2_"##version ".sys"); \
}

// Commenting the regression test for 0.9.0 as a breaking change was added.
// This test needs to be enabled once v0.11.0 is released. Tracking issue #2839.
// DECLARE_REGRESSION_TEST_CASE("0.9.0")
DECLARE_REGRESSION_TEST_CASE("0.11.0")

// The below tests try to load native drivers for invalid programs (that will fail verification).
// Since verification can be skipped in bpf2c for only Debug builds, these tests are applicable
Expand Down

0 comments on commit 3003ad0

Please sign in to comment.