microsoft / microsoft/ebpf-for-windows

Add test cases for BPF_MAP_TYPE_HASH_OF_MAPS and BPF_MAP_TYPE_ARRAY _OF_MAPS

Open
#2,891 2 comments 1 reaction 2 assignees Claimed by @copilot-swe-agent View on GitHub
P2 tests triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

### Describe the bug

Add missing test cases for

1. Hash of Maps with ANY inner map type, without static initializer.
2. Array of Maps with ANY inner map type, with static initializer.

- Outer map is BPF_MAP_TYPE_HASH_OF_MAPS, Inner map can by ANY map.
- Outer map is BPF_MAP_TYPE_ARRAY_OF_MAPS, Inner map can be ANY map.

### OS information

Windows 10 and above

### Steps taken to reproduce bug

Adding missing test cases.

### Expected behavior

Add missing test cases and verify whether the below-expected behavior is satisfied.

1. The outer map is BPF_MAP_TYPE_HASH_OF_MAPS, Inner map can be **ANY map**.
2. The outer map is BPF_MAP_TYPE_ARRAY_OF_MAPS, Inner map can be **ANY map**.

If the above doesn't meet the expected behavior, create issues.

### Actual outcome

Currently,
With outer map BPF_MAP_TYPE_HASH_OF_MAPS, Inner map with _TYPE_ARRAY passes with static initialization.

Please see https://github.com/microsoft/ebpf-for-windows/issues/2882

### Additional details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.