Skip to content

Commit

Permalink
Run bpf_conformance using bpf_conformance/tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett committed Oct 19, 2022
1 parent ff9ba9b commit 565b936
Showing 1 changed file with 18 additions and 1 deletion.
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

0 comments on commit 565b936

Please sign in to comment.