Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run bpf_conformance using bpf_conformance/tests #168

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ jobs:
path: ${{github.workspace}}/scan_build_report
retention-days: 5

- name: Run the bpf_conformance tests
- name: Run the local bpf_conformance tests
run: |
export BPF_CONFORMANCE_RUNNER="build_bpf_conformance/src/bpf_conformance_runner"
export BPF_CONFORMANCE_TEST_DIR="--test_file_directory tests"
Expand All @@ -195,6 +195,23 @@ jobs:
${BPF_CONFORMANCE_RUNNER} ${BPF_CONFORMANCE_TEST_DIR} ${BPF_CONFORMANCE_PLUGIN_JIT}
${BPF_CONFORMANCE_RUNNER} ${BPF_CONFORMANCE_TEST_DIR} ${BPF_CONFORMANCE_PLUGIN_INTERPRET}

- name: Run the upstream bpf_conformance tests
run: |
export BPF_CONFORMANCE_RUNNER="build_bpf_conformance/src/bpf_conformance_runner"
export BPF_CONFORMANCE_TEST_DIR="--test_file_directory external/bpf_conformance/tests"

# For arm64, we need to run the tests in qemu, so use the scripts
if [[ "${{ inputs.arch }}" == "arm64" ]] ; then
export BPF_CONFORMANCE_PLUGIN_JIT="--plugin_path aarch64_test/run-jit.sh"
export BPF_CONFORMANCE_PLUGIN_INTERPRET="--plugin_path aarch64_test/run-interpret.sh"
else
export BPF_CONFORMANCE_PLUGIN_JIT="--plugin_path build/bin/ubpf_plugin --plugin_options --jit"
export BPF_CONFORMANCE_PLUGIN_INTERPRET="--plugin_path build/bin/ubpf_plugin --plugin_options --interpret"
fi

${BPF_CONFORMANCE_RUNNER} ${BPF_CONFORMANCE_TEST_DIR} ${BPF_CONFORMANCE_PLUGIN_JIT}
${BPF_CONFORMANCE_RUNNER} ${BPF_CONFORMANCE_TEST_DIR} ${BPF_CONFORMANCE_PLUGIN_INTERPRET}

- name: Generate code coverage report
if: inputs.enable_coverage == true
run: |
Expand Down