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 ubpf_test over every file in corpus #468

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,23 @@ jobs:
--build build \
--target test

- name: Run ubpf_test over each file in fuzz corpus
run: |
wget https://github.com/iovisor/ubpf/archive/refs/heads/fuzz/corpus.zip
unzip corpus.zip
for file in ubpf-fuzz-corpus/fuzz/corpus/*; do
path=$(dirname $file)
name=$(basename $file)
libfuzzer/split.sh $file
interpret_result=$(build/bin/ubpf_test --mem $path/memory-$name $path/program-$name) || true
jit_result=$(build/bin/ubpf_test --mem $path/memory-$name $path/program-$name --jit) || true
if [[ $interpret_result != $jit_result ]]; then
echo "Interpret result: $interpret_result"
echo "JIT result: $jit_result"
echo "Test failed for $name"
fi
done

- name: Generate code coverage report
if: inputs.enable_coverage == true && inputs.platform == 'macos-latest'
run: |
Expand Down